summaryrefslogtreecommitdiffstats
path: root/locales
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2019-04-28 14:50:17 -0500
committerOmar Roth <omarroth@hotmail.com>2019-04-28 14:50:17 -0500
commit6cdb6ec711794c2887da03c0e5d3cfac67bded3f (patch)
treeae7142425c08d462c1796ccc9848270dcb80f858 /locales
parent03891b66b655a972f75a66a6764dc180059dc435 (diff)
downloadinvidious-6cdb6ec711794c2887da03c0e5d3cfac67bded3f.tar.gz
invidious-6cdb6ec711794c2887da03c0e5d3cfac67bded3f.tar.bz2
invidious-6cdb6ec711794c2887da03c0e5d3cfac67bded3f.zip
Add support for plurlization to locales
Diffstat (limited to 'locales')
-rw-r--r--locales/ar.json2
-rw-r--r--locales/en-US.json75
2 files changed, 61 insertions, 16 deletions
diff --git a/locales/ar.json b/locales/ar.json
index 0be55904..4b9b2711 100644
--- a/locales/ar.json
+++ b/locales/ar.json
@@ -307,4 +307,4 @@
"Videos": "الفيديوهات",
"Playlists": "قوائم التشغيل",
"Current version: ": "الإصدار الحالى"
-}
+} \ No newline at end of file
diff --git a/locales/en-US.json b/locales/en-US.json
index 8dbc7e61..21c2d515 100644
--- a/locales/en-US.json
+++ b/locales/en-US.json
@@ -1,6 +1,12 @@
{
- "`x` subscribers": "`x` subscribers",
- "`x` videos": "`x` videos",
+ "`x` subscribers": {
+ "(\\D|^)1(\\D|$)": "`x` subscriber",
+ "": "`x` subscribers"
+ },
+ "`x` videos": {
+ "(\\D|^)1(\\D|$)": "`x` video",
+ "": "`x` videos"
+ },
"LIVE": "LIVE",
"Shared `x` ago": "Shared `x` ago",
"Unsubscribe": "Unsubscribe",
@@ -102,13 +108,22 @@
"Subscription manager": "Subscription manager",
"Token manager": "Token manager",
"Token": "Token",
- "`x` subscriptions": "`x` subscriptions",
- "`x` tokens": "`x` tokens",
+ "`x` subscriptions": {
+ "(\\D|^)1(\\D|$)": "`x` subscription",
+ "": "`x` subscriptions"
+ },
+ "`x` tokens": {
+ "(\\D|^)1(\\D|$)": "`x` token",
+ "": "`x` tokens"
+ },
"Import/export": "Import/export",
"unsubscribe": "unsubscribe",
"revoke": "revoke",
"Subscriptions": "Subscriptions",
- "`x` unseen notifications": "`x` unseen notifications",
+ "`x` unseen notifications": {
+ "(\\D|^)1(\\D|$)": "`x` unseen notification",
+ "": "`x` unseen notifications"
+ },
"search": "search",
"Log out": "Log out",
"Released under the AGPLv3 by Omar Roth.": "Released under the AGPLv3 by Omar Roth.",
@@ -126,7 +141,10 @@
"Whitelisted regions: ": "Whitelisted regions: ",
"Blacklisted regions: ": "Blacklisted regions: ",
"Shared `x`": "Shared `x`",
- "`x` views": "`x` views",
+ "`x` views": {
+ "(\\D|^)1(\\D|$)": "`x` views",
+ "": "`x` views"
+ },
"Premieres in `x`": "Premieres in `x`",
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.",
"View YouTube comments": "View YouTube comments",
@@ -156,10 +174,16 @@
"This channel does not exist.": "This channel does not exist.",
"Could not get channel info.": "Could not get channel info.",
"Could not fetch comments": "Could not fetch comments",
- "View `x` replies": "View `x` replies",
+ "View `x` replies": {
+ "(\\D|^)1(\\D|$)": "View `x` reply",
+ "": "View `x` replies"
+ },
"`x` ago": "`x` ago",
"Load more": "Load more",
- "`x` points": "`x` points",
+ "`x` points": {
+ "(\\D|^)1(\\D|$)": "`x` point",
+ "": "`x` points"
+ },
"Could not create mix.": "Could not create mix.",
"Empty playlist": "Empty playlist",
"Not a playlist.": "Not a playlist.",
@@ -277,13 +301,34 @@
"Yiddish": "Yiddish",
"Yoruba": "Yoruba",
"Zulu": "Zulu",
- "`x` years": "`x` years",
- "`x` months": "`x` months",
- "`x` weeks": "`x` weeks",
- "`x` days": "`x` days",
- "`x` hours": "`x` hours",
- "`x` minutes": "`x` minutes",
- "`x` seconds": "`x` seconds",
+ "`x` years": {
+ "(\\D|^)1(\\D|$)": "`x` year",
+ "": "`x` years"
+ },
+ "`x` months": {
+ "(\\D|^)1(\\D|$)": "`x` month",
+ "": "`x` months"
+ },
+ "`x` weeks": {
+ "(\\D|^)1(\\D|$)": "`x` week",
+ "": "`x` weeks"
+ },
+ "`x` days": {
+ "(\\D|^)1(\\D|$)": "`x` day",
+ "": "`x` days"
+ },
+ "`x` hours": {
+ "(\\D|^)1(\\D|$)": "`x` hour",
+ "": "`x` hours"
+ },
+ "`x` minutes": {
+ "(\\D|^)1(\\D|$)": "`x` minute",
+ "": "`x` minutes"
+ },
+ "`x` seconds": {
+ "(\\D|^)1(\\D|$)": "`x` second",
+ "": "`x` seconds"
+ },
"Fallback comments: ": "Fallback comments: ",
"Popular": "Popular",
"Top": "Top",