Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

feat: Extract strings

Aman Raj Singh Mourya7cc6319d5f2e
diff --git a/auth/lib/l10n/arb/app_en.arb b/auth/lib/l10n/arb/app_en.arb
index 60ce6e41e5..64e0252bbe 100644
--- a/auth/lib/l10n/arb/app_en.arb
+++ b/auth/lib/l10n/arb/app_en.arb
@@ -513,5 +513,10 @@
"free5GB": "5GB free on <bold-green>ente</bold-green> Photos",
"loginWithAuthAccount": "Login with your Auth account",
"freeStorageOffer": "10% off on <bold-green>ente</bold-green> photos",
- "freeStorageOfferDescription": "Use code \"AUTH\" to get 10% off first year"
+ "freeStorageOfferDescription": "Use code \"AUTH\" to get 10% off first year",
+ "advanced": "Advanced",
+ "algorithm": "Algorithm",
+ "type": "Type",
+ "period": "Period",
+ "digits": "Digits"
}
\ No newline at end of file
diff --git a/auth/lib/onboarding/view/setup_enter_secret_key_page.dart b/auth/lib/onboarding/view/setup_enter_secret_key_page.dart
index 38fa6f5a54..0bf16c7e62 100644
--- a/auth/lib/onboarding/view/setup_enter_secret_key_page.dart
+++ b/auth/lib/onboarding/view/setup_enter_secret_key_page.dart
@@ -525,6 +525,7 @@ class _SetupEnterSecretKeyPageState extends State<SetupEnterSecretKeyPage> {
}
Widget advanceOptionWidget() {
+ final l10n = context.l10n;
return Padding(
padding: const EdgeInsets.only(top: 16.0),
child: Column(
@@ -537,9 +538,7 @@ class _SetupEnterSecretKeyPageState extends State<SetupEnterSecretKeyPage> {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
- const Text(
- 'Advanced',
- ),
+ Text(l10n.advanced),
ValueListenableBuilder<bool>(
valueListenable: showAdvancedOptions,
builder: (context, isExpanded, child) {
@@ -583,7 +582,7 @@ class _SetupEnterSecretKeyPageState extends State<SetupEnterSecretKeyPage> {
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
- const FieldLabel("Algorithm", width: 60),
+ FieldLabel(l10n.algorithm, width: 60),
AlgorithmSelectorWidget(
currentAlgorithm: _algorithm,
onSelected: (newAlgorithm) async {
@@ -597,7 +596,7 @@ class _SetupEnterSecretKeyPageState extends State<SetupEnterSecretKeyPage> {
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
- const FieldLabel("Type", width: 60),
+ FieldLabel(l10n.type, width: 60),
ToptSelectorWidget(
currentTopt: _type,
onSelected: (newTopt) async {
@@ -610,7 +609,7 @@ class _SetupEnterSecretKeyPageState extends State<SetupEnterSecretKeyPage> {
),
Row(
children: [
- const FieldLabel("Period", width: 60),
+ FieldLabel(l10n.period, width: 60),
Expanded(
child: TextFormField(
keyboardType: TextInputType.number,
@@ -639,7 +638,7 @@ class _SetupEnterSecretKeyPageState extends State<SetupEnterSecretKeyPage> {
),
Row(
children: [
- const FieldLabel("Digits", width: 60),
+ FieldLabel(l10n.digits, width: 60),
Expanded(
child: TextFormField(
keyboardType: TextInputType.number,