l10n: Extract strings

This commit is contained in:
Neeraj Gupta 2023-05-05 14:25:58 +05:30
parent ff93db2729
commit c31c8554e0
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
4 changed files with 59 additions and 4 deletions

View file

@ -1053,6 +1053,9 @@ class MessageLookup extends MessageLookupByLibrary {
"Sorry, we could not generate secure keys on this device.\n\nplease sign up from a different device."),
"sparkleSuccess": MessageLookupByLibrary.simpleMessage("✨ Success"),
"startBackup": MessageLookupByLibrary.simpleMessage("Start backup"),
"storage": MessageLookupByLibrary.simpleMessage("Storage"),
"storageBreakupFamily": MessageLookupByLibrary.simpleMessage("Family"),
"storageBreakupYou": MessageLookupByLibrary.simpleMessage("You"),
"storageInGB": m32,
"storageLimitExceeded":
MessageLookupByLibrary.simpleMessage("Storage limit exceeded"),
@ -1174,6 +1177,7 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Use recovery key"),
"useSelectedPhoto":
MessageLookupByLibrary.simpleMessage("Use selected photo"),
"usedSpace": MessageLookupByLibrary.simpleMessage("Used space"),
"verificationFailedPleaseTryAgain":
MessageLookupByLibrary.simpleMessage(
"Verification failed, please try again"),

View file

@ -6832,6 +6832,47 @@ class S {
args: [],
);
}
/// `Storage`
String get storage {
return Intl.message(
'Storage',
name: 'storage',
desc: '',
args: [],
);
}
/// `Used space`
String get usedSpace {
return Intl.message(
'Used space',
name: 'usedSpace',
desc: '',
args: [],
);
}
/// `Family`
String get storageBreakupFamily {
return Intl.message(
'Family',
name: 'storageBreakupFamily',
desc: '',
args: [],
);
}
/// `You`
String get storageBreakupYou {
return Intl.message(
'You',
name: 'storageBreakupYou',
desc:
'Label to indicate how much storage you are using when you are part of a family plan',
args: [],
);
}
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {

View file

@ -950,5 +950,12 @@
"description": "Unit for distance in km"
},
"dayToday": "Today",
"dayYesterday": "Yesterday"
"dayYesterday": "Yesterday",
"storage": "Storage",
"usedSpace": "Used space",
"storageBreakupFamily": "Family",
"storageBreakupYou": "You",
"@storageBreakupYou": {
"description": "Label to indicate how much storage you are using when you are part of a family plan"
}
}

View file

@ -3,6 +3,7 @@ import 'dart:math';
import 'package:flutter/material.dart';
import 'package:logging/logging.dart';
import 'package:photos/core/constants.dart';
import "package:photos/generated/l10n.dart";
import 'package:photos/models/user_details.dart';
import 'package:photos/states/user_details_state.dart';
import 'package:photos/theme/colors.dart';
@ -154,7 +155,9 @@ class _StorageCardWidgetState extends State<StorageCardWidget> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
isMobileScreenSmall ? "Used space" : "Storage",
isMobileScreenSmall
? S.of(context).usedSpace
: S.of(context).storage,
style: getEnteTextTheme(context)
.small
.copyWith(color: textMutedDark),
@ -227,7 +230,7 @@ class _StorageCardWidgetState extends State<StorageCardWidget> {
),
const SizedBox(width: 4),
Text(
"You",
S.of(context).storageBreakupYou,
style: getEnteTextTheme(context)
.miniBold
.copyWith(color: textBaseDark),
@ -243,7 +246,7 @@ class _StorageCardWidgetState extends State<StorageCardWidget> {
),
const SizedBox(width: 4),
Text(
"Family",
S.of(context).storageBreakupFamily,
style: getEnteTextTheme(context)
.miniBold
.copyWith(color: textBaseDark),