i18n 1.2.0

Dart native js
Flutter Android iOS web

Simple i18n solution for dart and flutter. Uses code generation to generate translations as dart classes. Efficient and works with autocomplete!

16
likes
100 / 110
pub points
81 %
popularity

We analyzed this package on Aug 9, 2020, and awarded it 100 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/main.dart

10/10 points: 20% or more of the public API has dartdoc comments

  • 8 out of 24 API elements (33.3 %) have documentation comments.
Support multiple platforms
20 / 20

20/20 points: Supports 2 of 2 possible platforms (native, js)

Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 4 issues. Showing the first 2:

INFO: Only use double quotes for strings containing single quotes.

lib/src/i18n_impl.dart:86:25

   ╷
86 │     result.objectName = "${result.defaultObjectName}_${result.localeName}";
   │                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/i18n_impl.dart

INFO: The value of the local variable 'mod100' isn't used.

lib/src/ru.dart:26:9

   ╷
26 │   final mod100 = count % 100;
   │         ^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/ru.dart

Support up-to-date dependencies
20 / 20

10/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
build^1.1.41.3.01.3.0
build_config^0.4.00.4.20.4.2
quick_log^1.0.01.1.31.1.3
yaml^2.1.162.2.12.2.1
Transitive dependencies
PackageConstraintCompatibleLatest
_fe_analyzer_shared-6.0.06.0.0
analyzer-0.39.160.39.16
args-1.6.01.6.0
async-2.4.22.4.2
boolean_selector-2.0.02.0.0
built_collection-4.3.24.3.2
built_value-7.1.07.1.0
charcode-1.1.31.1.3
checked_yaml-1.0.21.0.2
cli_util-0.1.40.2.0
collection-1.14.131.14.13
convert-2.1.12.1.1
coverage-0.14.00.14.0
crypto-2.1.52.1.5
csslib-0.16.20.16.2
equatable-1.2.31.2.3
fixnum-0.10.110.10.11
glob-1.2.01.2.0
hive-1.4.31.4.3
html-0.14.0+30.14.0+3
http-0.12.20.12.2
http_multi_server-2.2.02.2.0
http_parser-3.1.43.1.4
io-0.3.40.3.4
js-0.6.20.6.2
json_annotation-3.0.13.0.1
logging-0.11.40.11.4
matcher-0.12.90.12.9
meta-1.2.21.2.2
mime-0.9.6+30.9.6+3
no_bloc-0.3.100.3.10
node_interop-1.1.11.1.1
node_io-1.1.11.1.1
node_preamble-1.4.121.4.12
package_config-1.9.31.9.3
path-1.7.01.7.0
pool-1.4.01.4.0
pub_semver-1.4.41.4.4
pubspec_parse-0.1.50.1.5
quiver-2.1.32.1.3
rxdart-0.24.10.24.1
shelf-0.7.70.7.7
shelf_packages_handler-2.0.02.0.0
shelf_static-0.2.80.2.8
shelf_web_socket-0.2.30.2.3
source_map_stack_trace-2.0.02.0.0
source_maps-0.10.90.10.9
source_span-1.7.01.7.0
stack_trace-1.9.51.9.5
stream_channel-2.0.02.0.0
string_scanner-1.0.51.0.5
synchronized-2.2.0+22.2.0+2
term_glyph-1.1.01.1.0
test_api-0.2.180.2.18
test_core-0.3.110.3.11
typed_data-1.2.01.2.0
vm_service-4.2.04.2.0
watcher-0.9.7+150.9.7+15
web_socket_channel-1.1.01.1.0
webkit_inspection_protocol-0.7.30.7.3

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

16
likes
100
pub points
81%
popularity

Publisher

muha.dev

Simple i18n solution for dart and flutter. Uses code generation to generate translations as dart classes. Efficient and works with autocomplete!

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

build, build_config, quick_log, yaml

More

Packages that depend on i18n