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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 181 additions and 72 deletions

View file

@ -68,11 +68,10 @@ class AdvancedSettings extends HookConsumerWidget {
),
ListTile(
dense: true,
title: Text(
// Not translated because the levels are only English
"Log level: $logLevel",
style: const TextStyle(fontWeight: FontWeight.bold),
),
title: const Text(
"advanced_settings_log_level_title",
style: TextStyle(fontWeight: FontWeight.bold),
).tr(args: [logLevel]),
subtitle: Slider(
value: levelId.value.toDouble(),
onChanged: (double v) => levelId.value = v.toInt(),

View file

@ -42,12 +42,12 @@ class LocalStorageSettings extends HookConsumerWidget {
children: [
ListTile(
title: Text(
"Duplicated Assets (${cacheItemCount.value})",
"cache_settings_duplicated_assets_title",
style: context.textTheme.labelLarge
?.copyWith(fontWeight: FontWeight.bold),
).tr(),
).tr(args: ["${cacheItemCount.value}"]),
subtitle: const Text(
"Photos and videos that are black listed by the app",
"cache_settings_duplicated_assets_subtitle",
style: TextStyle(
fontSize: 13,
),
@ -55,7 +55,7 @@ class LocalStorageSettings extends HookConsumerWidget {
trailing: TextButton(
onPressed: cacheItemCount.value > 0 ? clearCache : null,
child: Text(
"CLEAR",
"cache_settings_duplicated_assets_clear_button",
style: TextStyle(
fontSize: 12,
color: cacheItemCount.value > 0 ? Colors.red : Colors.grey,