-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localization l10n #1264
Merged
Merged
Localization l10n #1264
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
f7a4796
carete l10n feature
Eldar2021 2c08edd
added home translations
Eldar2021 f5326d0
added account translations
Eldar2021 eb0ceed
added Assets translations
Eldar2021 6a75d28
added bazaar translations
Eldar2021 5bdee97
added encointer translations
Eldar2021 59dc3d1
Added profile translations
Eldar2021 30a2632
added transaction translations
Eldar2021 d92bbc5
deleted repeated words
Eldar2021 34dadab
commented encointer translations
Eldar2021 2c5e25c
fix all lint error
Eldar2021 8de09f0
try fix some dictitionary
Eldar2021 e210da4
try fix varibles arb
Eldar2021 149d078
rename dic -> l10n
Eldar2021 7f8afe3
format arb files
Eldar2021 0d06435
deleted unused old translations
Eldar2021 1b4edb8
deleted unused warnings json file
Eldar2021 68d7f0d
rename translation -> l10n
Eldar2021 daab1ea
refactoring code
Eldar2021 0767076
pulled origin master fixed all conflicts
Eldar2021 1b07f5c
pulled origin master
Eldar2021 21f9ef4
pulled origin master and fixed all conflicts
Eldar2021 d1b0910
deleted validateAccount
Eldar2021 85e618f
fix by comment
Eldar2021 e77d2aa
pulled origin master and fixed all conflicts
Eldar2021 910abeb
try fix unit test
Eldar2021 e08e4e4
try fix pdf Cyrillic alphabet
Eldar2021 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
arb-dir: lib/l10n/arb | ||
template-arb-file: app_en.arb | ||
output-localization-file: app_localizations.dart | ||
nullable-getter: false | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_localizations/flutter_localizations.dart'; | ||
import 'package:flutter_mobx/flutter_mobx.dart'; | ||
import 'package:provider/provider.dart'; | ||
import 'package:encointer_wallet/l10n/l10.dart'; | ||
|
||
import 'package:encointer_wallet/modules/modules.dart'; | ||
import 'package:encointer_wallet/router/app_router.dart'; | ||
import 'package:encointer_wallet/utils/snack_bar.dart'; | ||
import 'package:encointer_wallet/utils/translations/index.dart'; | ||
|
||
class WalletApp extends StatelessWidget { | ||
const WalletApp({super.key}); | ||
|
@@ -28,13 +27,8 @@ class WalletApp extends StatelessWidget { | |
return MaterialApp( | ||
title: 'EncointerWallet', | ||
locale: appSettings.locale, | ||
localizationsDelegates: [ | ||
AppLocalizationsDelegate(appSettings.locale), | ||
GlobalMaterialLocalizations.delegate, | ||
GlobalCupertinoLocalizations.delegate, | ||
GlobalWidgetsLocalizations.delegate, | ||
], | ||
supportedLocales: appSettings.locales, | ||
Comment on lines
-31
to
-37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now these are available within |
||
localizationsDelegates: AppLocalizations.localizationsDelegates, | ||
supportedLocales: AppLocalizations.supportedLocales, | ||
initialRoute: SplashView.route, | ||
theme: appSettings.theme.light, | ||
scaffoldMessengerKey: rootScaffoldMessengerKey, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arb-dir: lib/l10n/arb
- Path to the directory containing the textstemplate-arb-file: app_en.arb
- Will generate based onapp_en.arb
. The parameter type it takes, for example...output-localization-file: app_localizations.dart
- Name of the file to be generatednullable-getter: false
- We don't have nullable texts yet