Localization optimization

This commit is contained in:
Lumaa 2024-03-24 01:42:07 +01:00
parent 5ad31779cb
commit 343543961f
2 changed files with 217 additions and 137 deletions

View File

@ -551,21 +551,21 @@ public struct StatusData: Encodable, Sendable {
public var description: LocalizedStringKey {
switch self {
case .fiveMinutes:
"poll.expiry.fiveMinutes"
"duration.fiveMinutes"
case .thirtyMinutes:
"poll.expiry.thirtyMinutes"
"duration.thirtyMinutes"
case .oneHour:
"poll.expiry.oneHour"
"duration.oneHour"
case .sixHours:
"poll.expiry.sixHours"
"duration.sixHours"
case .twelveHours:
"poll.expiry.twelveHours"
"duration.twelveHours"
case .oneDay:
"poll.expiry.oneDay"
"duration.oneDay"
case .threeDays:
"poll.expiry.threeDays"
"duration.threeDays"
case .sevenDays:
"poll.expiry.sevenDays"
"duration.sevenDays"
}
}
}

View File

@ -167,6 +167,22 @@
}
}
},
"account.block" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Block"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Bloquer"
}
}
}
},
"account.follow" : {
"localizations" : {
"en" : {
@ -255,6 +271,22 @@
}
}
},
"account.mute" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Mute"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Rendre muet"
}
}
}
},
"account.no-statuses" : {
"localizations" : {
"en" : {
@ -271,6 +303,22 @@
}
}
},
"account.unblock" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Unblock"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Débloquer"
}
}
}
},
"account.unfollow" : {
"localizations" : {
"en" : {
@ -287,6 +335,22 @@
}
}
},
"account.unmute" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Unmute"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Mettre à l'écoute"
}
}
}
},
"account.view" : {
"localizations" : {
"en" : {
@ -919,6 +983,150 @@
}
}
},
"duration.fiveMinutes" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "5 minutes"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "5 minutes"
}
}
}
},
"duration.infinite" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Indefinitively"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Indéfinitivement"
}
}
}
},
"duration.oneDay" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "1 day"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "24 heures"
}
}
}
},
"duration.oneHour" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "1 hour"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "1 heure"
}
}
}
},
"duration.sevenDays" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "7 days"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "7 jours"
}
}
}
},
"duration.sixHours" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "6 hours"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "6 heures"
}
}
}
},
"duration.thirtyMinutes" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "30 minutes"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "30 minutes"
}
}
}
},
"duration.threeDays" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "3 days"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "3 jours"
}
}
}
},
"duration.twelveHours" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "12 hours"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "12 heures"
}
}
}
},
"error.loading-image" : {
"localizations" : {
"en" : {
@ -1191,134 +1399,6 @@
}
}
},
"poll.expiry.fiveMinutes" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "5 minutes"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "5 minutes"
}
}
}
},
"poll.expiry.oneDay" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "1 day"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "1 jour"
}
}
}
},
"poll.expiry.oneHour" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "1 hour"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "1 heure"
}
}
}
},
"poll.expiry.sevenDays" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "7 days"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "7 jours"
}
}
}
},
"poll.expiry.sixHours" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "6 hours"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "6 heures"
}
}
}
},
"poll.expiry.thirtyMinutes" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "30 minutes"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "30 minutes"
}
}
}
},
"poll.expiry.threeDays" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "3 days"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "3 jours"
}
}
}
},
"poll.expiry.twelveHours" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "12 hours"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "12 heures"
}
}
}
},
"posting.alt.apply" : {
"localizations" : {
"en" : {
@ -2357,7 +2437,7 @@
"fr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Pour 19.99€ par mois, renouvellement automatique"
"value" : "Pour 19.99€ par ans, renouvellement automatique"
}
}
}