Skip to content

Commit

Permalink
Adjust intl files
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jan 26, 2024
1 parent 08c5ca0 commit fd335d0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ app.*.map.json
#auto generated
*.g.dart
/.vscode/settings.json
/lib/l10n/messages_all.dart
/lib/l10n/messages_all_locales.dart
/lib/l10n/messages_messages.dart
/lib/l10n/messages_*.dart
2 changes: 1 addition & 1 deletion l10n.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
arb-dir: lib/l10n
template-arb-file: en_messages.arb
template-arb-file: messages_en.arb
output-localization-file: app_localizations.dart
4 changes: 2 additions & 2 deletions lib/Frontend/intnDefs.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:intl/intl.dart';

//generate file for translation. Run when adding new translations
//dart run intl_translation:extract_to_arb --locale=en --output-file='./lib/l10n/en_messages.arb' ./lib/Frontend/intnDefs.dart
//dart run intl_translation:extract_to_arb --locale=en --output-file='./lib/l10n/messages_en.arb' ./lib/Frontend/intnDefs.dart
//convert to dart TODO:
// dart run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/Frontend/intnDefs.dart lib/l10n/intl_*.arb
// dart run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/Frontend/intnDefs.dart lib/l10n/*_messages.arb
String title() => Intl.message('Tail App', name: 'title', desc: 'The name of the app');

String subTitle() => Intl.message('All of the Tails', name: 'subTitle', desc: 'The sub-title which displays in the navigation drawer');
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit fd335d0

Please sign in to comment.