Skip to content

Commit

Permalink
Keep the french lang, so we don't change the integer value of the app…
Browse files Browse the repository at this point in the history
… language enum

Bump to the 1.0.9+57
  • Loading branch information
Wolfteam committed Mar 22, 2021
1 parent d2bb2ee commit 1270981
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/domain/assets.dart
Expand Up @@ -106,6 +106,7 @@ class Assets {

static String getTranslationPath(AppLanguageType languageType) {
switch (languageType) {
case AppLanguageType.french:
case AppLanguageType.english:
return '$translationsBasePath/en.json';
case AppLanguageType.spanish:
Expand Down
1 change: 1 addition & 0 deletions lib/domain/enums/app_language_type.dart
@@ -1,6 +1,7 @@
enum AppLanguageType {
english,
spanish,
french,
russian,
simplifiedChinese,
}
Expand Up @@ -15,7 +15,8 @@ class LanguageSettingsCard extends StatelessWidget {
Widget build(BuildContext context) {
final s = S.of(context);
final theme = Theme.of(context);
final languages = AppLanguageType.values.toList();
final ignored = [AppLanguageType.french];
final languages = AppLanguageType.values.where((x) => !ignored.contains(x)).toList();
return SettingsCard(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
Expand Down
1 change: 1 addition & 0 deletions lib/presentation/shared/extensions/i18n_extensions.dart
Expand Up @@ -15,6 +15,7 @@ extension I18nExtensions on S {

String translateAppLanguageType(AppLanguageType lang) {
switch (lang) {
case AppLanguageType.french:
case AppLanguageType.english:
return english;
case AppLanguageType.spanish:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Expand Up @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.9+56
version: 1.0.9+57

environment:
sdk: ">=2.10.4 <3.0.0"
Expand Down

0 comments on commit 1270981

Please sign in to comment.