Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ilib-js/ilib-loctool-arb
Ilib loctool plugin to parse and localize ARB files
https://github.com/ilib-js/ilib-loctool-arb
Last synced: 3 days ago
JSON representation
Ilib loctool plugin to parse and localize ARB files
- Host: GitHub
- URL: https://github.com/ilib-js/ilib-loctool-arb
- Owner: iLib-js
- License: apache-2.0
- Created: 2023-08-22T05:57:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-06T06:15:21.000Z (about 1 year ago)
- Last Synced: 2024-10-13T15:22:21.226Z (about 1 month ago)
- Language: JavaScript
- Size: 39.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ilib-loctool-arb
An ilib loctool plugin to parse and localize arb files.## Configuration
By default, plugin will localize source `intl_messages.arb` file.
e.g. `/asset/l10n/intl_messages.arb`, and write localized file
to a same location with name `intl_[locale].arb`
e.g. `/asset/l10n/intl_es.arb`.## ARB File
[ARB - Application Resource Bundle](https://github.com/google/app-resource-bundle/wiki/ApplicationResourceBundleSpecification) is a file format for localization basedon JSON with
the resource entries encoded as JSON object. Each object consists of a resource key with an
optional attribute. ARB files are used to localize apps build with [Flutter](https://flutter.dev/).### intl_messages.arb file
The `intl_messages.arb` file is generated `extract_to_arb.dart` program provided by [intl_translation](https://pub.dev/packages/intl_translation)Example file:
```json
{
"@@last_modified": "2023-08-28T13:51:31.807702",
"_title": "Hello",
"@_title": {
"type": "text",
"placeholders": {}
},
"_incrementButton": "Thank you",
"@_incrementButton": {
"type": "text",
"placeholders": {}
},
}
```## License
Copyright © 2023 JEDLSoftThis plugin is license under Apache2. See the [LICENSE](./LICENSE)
file for more details.## Release Notes
v1.0.0
* Implement for [ARB](https://github.com/google/app-resource-bundle/wiki/ApplicationResourceBundleSpecification) file type of localization.
* It localizes the `intl_messages.arb` file which is the result of `extract_to_arb.dart` program provided by [intl_translation](https://pub.dev/packages/intl_translation)