Skip to content

Commit

Permalink
feat(ui): l10n 対応
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsutakein committed Jun 17, 2024
1 parent e2b29a4 commit 441b130
Show file tree
Hide file tree
Showing 14 changed files with 200 additions and 5 deletions.
3 changes: 3 additions & 0 deletions app/lib/l10n/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/pubspec.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ dependencies:
core_model:
# noinspection DartPathPackageReference
path: ../core/model
core_ui:
# noinspection DartPathPackageReference
path: ../core/ui
cupertino_icons: 1.0.8
dynamic_color: 1.7.0
feature_auth:
Expand Down
12 changes: 12 additions & 0 deletions core/ui/l10n.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
arb-dir: lib/src/l10n
output-dir: lib/src/gen/l10n
template-arb-file: app_ja.arb
output-localization-file: l10n.dart
output-class: L10n
synthetic-package: false
preferred-supported-locales:
- ja
- en
header: '// ignore_for_file: type=lint'
nullable-getter: false
format: true
4 changes: 0 additions & 4 deletions core/ui/lib/core_ui.dart

This file was deleted.

1 change: 1 addition & 0 deletions core/ui/lib/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file removed core/ui/lib/src/.gitkeep
Empty file.
136 changes: 136 additions & 0 deletions core/ui/lib/src/gen/l10n/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions core/ui/lib/src/gen/l10n/l10n_en.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions core/ui/lib/src/gen/l10n/l10n_ja.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions core/ui/lib/src/l10n/app_en.arb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"uiText": "Text"
}
3 changes: 3 additions & 0 deletions core/ui/lib/src/l10n/app_ja.arb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"uiText": "テキスト"
}
13 changes: 13 additions & 0 deletions core/ui/pubspec.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions core/ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ dependencies:
path: ../model
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
intl: 0.19.0

dev_dependencies:
core_testing:
Expand Down

0 comments on commit 441b130

Please sign in to comment.