Skip to content

Commit a9357c8

Browse files
committed
user local time
1 parent 449f326 commit a9357c8

18 files changed

+197
-65
lines changed

assets/l10n/app_ar.arb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@
77
"wildcardMentionChannelDescription": "إخطار القناة",
88
"wildcardMentionStreamDescription": "إخطار الدفق",
99
"wildcardMentionAllDmDescription": "إخطار المستلمين",
10-
"wildcardMentionTopicDescription": "إخطار الموضوع"
10+
"wildcardMentionTopicDescription": "إخطار الموضوع",
11+
"userLocalTime": "{userTime} الوقت المحلي",
12+
"@userLocalTime": {
13+
"description": "Current time in the user's timezone",
14+
"placeholders": {
15+
"userTime": {"type": "DateTime", "format": "jm"}
16+
}
17+
}
1118
}

assets/l10n/app_en.arb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,5 +716,12 @@
716716
"emojiPickerSearchEmoji": "Search emoji",
717717
"@emojiPickerSearchEmoji": {
718718
"description": "Hint text for the emoji picker search text field."
719+
},
720+
"userLocalTime": "{userTime} local time",
721+
"@userLocalTime": {
722+
"description": "Current time in the user's timezone",
723+
"placeholders": {
724+
"userTime": {"type": "DateTime", "format": "jm"}
725+
}
719726
}
720727
}

assets/l10n/app_ja.arb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,12 @@
1616
"userRoleGuest": "ゲスト",
1717
"@userRoleGuest": {},
1818
"userRoleUnknown": "不明",
19-
"@userRoleUnknown": {}
19+
"@userRoleUnknown": {},
20+
"userLocalTime": "現地時間 {userTime}",
21+
"@userLocalTime": {
22+
"description": "Current time in the user's timezone",
23+
"placeholders": {
24+
"userTime": {"type": "DateTime", "format": "jm"}
25+
}
26+
}
2027
}

assets/l10n/app_pl.arb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,5 +776,12 @@
776776
"errorUnmuteTopicFailed": "Wznowienie bez powodzenia",
777777
"@errorUnmuteTopicFailed": {
778778
"description": "Error message when unmuting a topic failed."
779+
},
780+
"userLocalTime": "{userTime} czas lokalny",
781+
"@userLocalTime": {
782+
"description": "Current time in the user's timezone",
783+
"placeholders": {
784+
"userTime": {"type": "DateTime", "format": "jm"}
785+
}
779786
}
780787
}

assets/l10n/app_ru.arb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,5 +776,12 @@
776776
"errorMessageNotSent": "Сообщение не отправлено",
777777
"@errorMessageNotSent": {
778778
"description": "Error message for compose box when a message could not be sent."
779+
},
780+
"userLocalTime": "{userTime} местное время",
781+
"@userLocalTime": {
782+
"description": "Current time in the user's timezone",
783+
"placeholders": {
784+
"userTime": {"type": "DateTime", "format": "jm"}
785+
}
779786
}
780787
}

assets/timezone/latest_all.tzf

433 KB
Binary file not shown.

lib/generated/l10n/zulip_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,12 @@ abstract class ZulipLocalizations {
10701070
/// In en, this message translates to:
10711071
/// **'Search emoji'**
10721072
String get emojiPickerSearchEmoji;
1073+
1074+
/// Current time in the user's timezone
1075+
///
1076+
/// In en, this message translates to:
1077+
/// **'{userTime} local time'**
1078+
String userLocalTime(DateTime userTime);
10731079
}
10741080

10751081
class _ZulipLocalizationsDelegate extends LocalizationsDelegate<ZulipLocalizations> {

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,4 +564,12 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
564564

565565
@override
566566
String get emojiPickerSearchEmoji => 'Search emoji';
567+
568+
@override
569+
String userLocalTime(DateTime userTime) {
570+
final intl.DateFormat userTimeDateFormat = intl.DateFormat.jm(localeName);
571+
final String userTimeString = userTimeDateFormat.format(userTime);
572+
573+
return '$userTimeString الوقت المحلي';
574+
}
567575
}

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,4 +564,12 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
564564

565565
@override
566566
String get emojiPickerSearchEmoji => 'Search emoji';
567+
568+
@override
569+
String userLocalTime(DateTime userTime) {
570+
final intl.DateFormat userTimeDateFormat = intl.DateFormat.jm(localeName);
571+
final String userTimeString = userTimeDateFormat.format(userTime);
572+
573+
return '$userTimeString local time';
574+
}
567575
}

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,4 +564,12 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
564564

565565
@override
566566
String get emojiPickerSearchEmoji => 'Search emoji';
567+
568+
@override
569+
String userLocalTime(DateTime userTime) {
570+
final intl.DateFormat userTimeDateFormat = intl.DateFormat.jm(localeName);
571+
final String userTimeString = userTimeDateFormat.format(userTime);
572+
573+
return '現地時間 $userTimeString';
574+
}
567575
}

0 commit comments

Comments
 (0)