Skip to content

Commit

Permalink
Merge pull request #1274 from lichess-org/relative_date_translation
Browse files Browse the repository at this point in the history
Relative date translation
  • Loading branch information
veloce authored Dec 19, 2024
2 parents b75cd58 + 2081125 commit 2ea2b5e
Show file tree
Hide file tree
Showing 129 changed files with 12,014 additions and 224 deletions.
124 changes: 124 additions & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@
"preferencesDisplayBoardResizeHandle": "Show board resize handle",
"preferencesOnlyOnInitialPosition": "Only on initial position",
"preferencesInGameOnly": "In-game only",
"preferencesExceptInGame": "Except in-game",
"preferencesChessClock": "Chess clock",
"preferencesTenthsOfSeconds": "Tenths of seconds",
"preferencesWhenTimeRemainingLessThanTenSeconds": "When time remaining < 10 seconds",
Expand Down Expand Up @@ -3164,5 +3165,128 @@
"type": "int"
}
}
},
"timeagoJustNow": "just now",
"timeagoRightNow": "right now",
"timeagoCompleted": "completed",
"timeagoInNbSeconds": "{count, plural, =1{in {count} second} other{in {count} seconds}}",
"@timeagoInNbSeconds": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoInNbMinutes": "{count, plural, =1{in {count} minute} other{in {count} minutes}}",
"@timeagoInNbMinutes": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoInNbHours": "{count, plural, =1{in {count} hour} other{in {count} hours}}",
"@timeagoInNbHours": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoInNbDays": "{count, plural, =1{in {count} day} other{in {count} days}}",
"@timeagoInNbDays": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoInNbWeeks": "{count, plural, =1{in {count} week} other{in {count} weeks}}",
"@timeagoInNbWeeks": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoInNbMonths": "{count, plural, =1{in {count} month} other{in {count} months}}",
"@timeagoInNbMonths": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoInNbYears": "{count, plural, =1{in {count} year} other{in {count} years}}",
"@timeagoInNbYears": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoNbMinutesAgo": "{count, plural, =1{{count} minute ago} other{{count} minutes ago}}",
"@timeagoNbMinutesAgo": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoNbHoursAgo": "{count, plural, =1{{count} hour ago} other{{count} hours ago}}",
"@timeagoNbHoursAgo": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoNbDaysAgo": "{count, plural, =1{{count} day ago} other{{count} days ago}}",
"@timeagoNbDaysAgo": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoNbWeeksAgo": "{count, plural, =1{{count} week ago} other{{count} weeks ago}}",
"@timeagoNbWeeksAgo": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoNbMonthsAgo": "{count, plural, =1{{count} month ago} other{{count} months ago}}",
"@timeagoNbMonthsAgo": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoNbYearsAgo": "{count, plural, =1{{count} year ago} other{{count} years ago}}",
"@timeagoNbYearsAgo": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoNbMinutesRemaining": "{count, plural, =1{{count} minute remaining} other{{count} minutes remaining}}",
"@timeagoNbMinutesRemaining": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"timeagoNbHoursRemaining": "{count, plural, =1{{count} hour remaining} other{{count} hours remaining}}",
"@timeagoNbHoursRemaining": {
"placeholders": {
"count": {
"type": "int"
}
}
}
}
114 changes: 114 additions & 0 deletions lib/l10n/l10n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,12 @@ abstract class AppLocalizations {
/// **'In-game only'**
String get preferencesInGameOnly;

/// No description provided for @preferencesExceptInGame.
///
/// In en, this message translates to:
/// **'Except in-game'**
String get preferencesExceptInGame;

/// No description provided for @preferencesChessClock.
///
/// In en, this message translates to:
Expand Down Expand Up @@ -9491,6 +9497,114 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'{count, plural, =1{Paste your PGN text here, up to {count} game} other{Paste your PGN text here, up to {count} games}}'**
String studyPasteYourPgnTextHereUpToNbGames(int count);

/// No description provided for @timeagoJustNow.
///
/// In en, this message translates to:
/// **'just now'**
String get timeagoJustNow;

/// No description provided for @timeagoRightNow.
///
/// In en, this message translates to:
/// **'right now'**
String get timeagoRightNow;

/// No description provided for @timeagoCompleted.
///
/// In en, this message translates to:
/// **'completed'**
String get timeagoCompleted;

/// No description provided for @timeagoInNbSeconds.
///
/// In en, this message translates to:
/// **'{count, plural, =1{in {count} second} other{in {count} seconds}}'**
String timeagoInNbSeconds(int count);

/// No description provided for @timeagoInNbMinutes.
///
/// In en, this message translates to:
/// **'{count, plural, =1{in {count} minute} other{in {count} minutes}}'**
String timeagoInNbMinutes(int count);

/// No description provided for @timeagoInNbHours.
///
/// In en, this message translates to:
/// **'{count, plural, =1{in {count} hour} other{in {count} hours}}'**
String timeagoInNbHours(int count);

/// No description provided for @timeagoInNbDays.
///
/// In en, this message translates to:
/// **'{count, plural, =1{in {count} day} other{in {count} days}}'**
String timeagoInNbDays(int count);

/// No description provided for @timeagoInNbWeeks.
///
/// In en, this message translates to:
/// **'{count, plural, =1{in {count} week} other{in {count} weeks}}'**
String timeagoInNbWeeks(int count);

/// No description provided for @timeagoInNbMonths.
///
/// In en, this message translates to:
/// **'{count, plural, =1{in {count} month} other{in {count} months}}'**
String timeagoInNbMonths(int count);

/// No description provided for @timeagoInNbYears.
///
/// In en, this message translates to:
/// **'{count, plural, =1{in {count} year} other{in {count} years}}'**
String timeagoInNbYears(int count);

/// No description provided for @timeagoNbMinutesAgo.
///
/// In en, this message translates to:
/// **'{count, plural, =1{{count} minute ago} other{{count} minutes ago}}'**
String timeagoNbMinutesAgo(int count);

/// No description provided for @timeagoNbHoursAgo.
///
/// In en, this message translates to:
/// **'{count, plural, =1{{count} hour ago} other{{count} hours ago}}'**
String timeagoNbHoursAgo(int count);

/// No description provided for @timeagoNbDaysAgo.
///
/// In en, this message translates to:
/// **'{count, plural, =1{{count} day ago} other{{count} days ago}}'**
String timeagoNbDaysAgo(int count);

/// No description provided for @timeagoNbWeeksAgo.
///
/// In en, this message translates to:
/// **'{count, plural, =1{{count} week ago} other{{count} weeks ago}}'**
String timeagoNbWeeksAgo(int count);

/// No description provided for @timeagoNbMonthsAgo.
///
/// In en, this message translates to:
/// **'{count, plural, =1{{count} month ago} other{{count} months ago}}'**
String timeagoNbMonthsAgo(int count);

/// No description provided for @timeagoNbYearsAgo.
///
/// In en, this message translates to:
/// **'{count, plural, =1{{count} year ago} other{{count} years ago}}'**
String timeagoNbYearsAgo(int count);

/// No description provided for @timeagoNbMinutesRemaining.
///
/// In en, this message translates to:
/// **'{count, plural, =1{{count} minute remaining} other{{count} minutes remaining}}'**
String timeagoNbMinutesRemaining(int count);

/// No description provided for @timeagoNbHoursRemaining.
///
/// In en, this message translates to:
/// **'{count, plural, =1{{count} hour remaining} other{{count} hours remaining}}'**
String timeagoNbHoursRemaining(int count);
}

class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> {
Expand Down
Loading

0 comments on commit 2ea2b5e

Please sign in to comment.