Переглянути джерело

l10n: extract StorageErrorWidget strings

Neeraj Gupta 2 роки тому
батько
коміт
8e2d94e308

+ 3 - 0
lib/generated/intl/messages_en.dart

@@ -668,6 +668,9 @@ class MessageLookup extends MessageLookupByLibrary {
         "youHaveSuccessfullyFreedUp": m28,
         "yourAccountHasBeenDeleted": MessageLookupByLibrary.simpleMessage(
             "Your account has been deleted"),
+        "yourStorageDetailsCouldNotBeFetched":
+            MessageLookupByLibrary.simpleMessage(
+                "Your storage details could not be fetched"),
         "youveNoDuplicateFilesThatCanBeCleared":
             MessageLookupByLibrary.simpleMessage(
                 "You\'ve no duplicate files that can be cleared")

+ 10 - 0
lib/generated/l10n.dart

@@ -3697,6 +3697,16 @@ class S {
       args: [],
     );
   }
+
+  /// `Your storage details could not be fetched`
+  String get yourStorageDetailsCouldNotBeFetched {
+    return Intl.message(
+      'Your storage details could not be fetched',
+      name: 'yourStorageDetailsCouldNotBeFetched',
+      desc: '',
+      args: [],
+    );
+  }
 }
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 2 - 1
lib/l10n/intl_en.arb

@@ -528,5 +528,6 @@
   "mastodon": "Mastodon",
   "matrix": "Matrix",
   "discord": "Discord",
-  "reddit": "Reddit"
+  "reddit": "Reddit",
+  "yourStorageDetailsCouldNotBeFetched": "Your storage details could not be fetched"
 }

+ 2 - 1
lib/ui/settings/storage_error_widget.dart

@@ -1,4 +1,5 @@
 import 'package:flutter/material.dart';
+import "package:photos/generated/l10n.dart";
 import 'package:photos/theme/colors.dart';
 import 'package:photos/theme/ente_theme.dart';
 
@@ -19,7 +20,7 @@ class StorageErrorWidget extends StatelessWidget {
           ),
           const SizedBox(height: 8),
           Text(
-            "Your storage details could not be fetched",
+            S.of(context).yourStorageDetailsCouldNotBeFetched,
             style: getEnteTextTheme(context).small.copyWith(
                   color: textMutedDark,
                 ),