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

@@ -1,3 +1,4 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
@@ -52,9 +53,9 @@ class PersonResultPage extends HookConsumerWidget {
ListTile(
leading: const Icon(Icons.edit_outlined),
title: const Text(
'Edit name',
'search_page_person_edit_name',
style: TextStyle(fontWeight: FontWeight.bold),
),
).tr(),
onTap: showEditNameDialog,
),
],
@@ -72,15 +73,15 @@ class PersonResultPage extends HookConsumerWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Add a name',
'search_page_person_add_name_title',
style: context.textTheme.titleSmall?.copyWith(
color: context.themeData.colorScheme.secondary,
),
),
).tr(),
Text(
'Find them fast by name with search',
'search_page_person_add_name_subtitle',
style: context.textTheme.labelSmall,
),
).tr(),
],
),
);

View File

@@ -198,7 +198,7 @@ class SearchPage extends HookConsumerWidget {
).tr(),
),
ListTile(
title: Text('Screenshots', style: categoryTitleStyle).tr(),
title: Text('search_page_screenshots', style: categoryTitleStyle).tr(),
leading: Icon(
Icons.screenshot,
color: categoryIconColor,