fix(mobile): Mark more strings for translation (#5132)

* fix(mobile): Mark more strings for translation

Moving more strings to the `i18n` JSON file, and also including their
es-US translations.

* Add more translatable strings
This commit is contained in:
Michael Manganiello
2023-11-18 21:32:28 -05:00
committed by GitHub
parent f5ce3deb3a
commit 6d310d6297
14 changed files with 181 additions and 72 deletions

View File

@@ -74,8 +74,7 @@ class ServerInfoNotifier extends StateNotifier<ServerInfo> {
if (appVersion["major"]! > serverVersion.major) {
state = state.copyWith(
isVersionMismatch: true,
versionMismatchErrorMessage:
"Server is out of date. Please update to the latest major version.",
versionMismatchErrorMessage: "profile_drawer_server_out_of_date_major".tr(),
);
return;
}
@@ -83,8 +82,7 @@ class ServerInfoNotifier extends StateNotifier<ServerInfo> {
if (appVersion["major"]! < serverVersion.major) {
state = state.copyWith(
isVersionMismatch: true,
versionMismatchErrorMessage:
"Mobile App is out of date. Please update to the latest major version.",
versionMismatchErrorMessage: "profile_drawer_client_out_of_date_major".tr(),
);
return;
}
@@ -92,8 +90,7 @@ class ServerInfoNotifier extends StateNotifier<ServerInfo> {
if (appVersion["minor"]! > serverVersion.minor) {
state = state.copyWith(
isVersionMismatch: true,
versionMismatchErrorMessage:
"Server is out of date. Please update to the latest minor version.",
versionMismatchErrorMessage: "profile_drawer_server_out_of_date_minor".tr(),
);
return;
}
@@ -101,8 +98,7 @@ class ServerInfoNotifier extends StateNotifier<ServerInfo> {
if (appVersion["minor"]! < serverVersion.minor) {
state = state.copyWith(
isVersionMismatch: true,
versionMismatchErrorMessage:
"Mobile App is out of date. Please update to the latest minor version.",
versionMismatchErrorMessage: "profile_drawer_client_out_of_date_minor".tr(),
);
return;
}