A simple note taking app written using Flutter.
Run the command: flutter packages pub run build_runner build
Add the new translation string (in English) to the definitions in lib/l10n/localization.dart
.
- Generate the
intl_messages.arb
file:flutter pub pub run intl_translation:extract_to_arb --output-dir=lib/l10n lib/l10n/localization.dart
- Manually merge any changes from the
intl_messages.arb
file with the existing.arb
localizations. - Add the actual translations for the other supported languages.
- Delete the file
intl_messages.arb
. - Generate the required
messages.*.dart
files:flutter pub pub run intl_translation:generate_from_arb lib/l10n/localization.dart lib/l10n/*.arb --output-dir=lib/l10n
Brought to you by the power of the Chilicorn and the Futurice Open Source Program.
Copyright 2019 Peter Tackage
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.