From fea20ea9130a26e02c6d9d7fc7bd5b90a89e441e Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 12 Jul 2019 21:07:40 -0500 Subject: [PATCH] Add support for Icelandic translation --- locales/is.json | 17 +---------------- src/invidious.cr | 1 + 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/locales/is.json b/locales/is.json index e381882c..d7eaa63a 100644 --- a/locales/is.json +++ b/locales/is.json @@ -1,7 +1,5 @@ { - "`x` subscribers.(\\D|^)1(\\D|$)": "", "`x` subscribers.": "`x` áskrifandar.", - "`x` videos.(\\D|^)1(\\D|$)": "", "`x` videos.": "`x` myndbönd.", "LIVE": "BEINT", "Shared `x` ago": "Deilt `x` síðan", @@ -110,15 +108,12 @@ "Subscription manager": "", "Token manager": "", "Token": "", - "`x` subscriptions.(\\D|^)1(\\D|$)": "", "`x` subscriptions.": "", - "`x` tokens.(\\D|^)1(\\D|$)": "", "`x` tokens.": "", "Import/export": "", "unsubscribe": "", "revoke": "", "Subscriptions": "", - "`x` unseen notifications.(\\D|^)1(\\D|$)": "", "`x` unseen notifications.": "", "search": "", "Log out": "", @@ -139,7 +134,6 @@ "Whitelisted regions: ": "", "Blacklisted regions: ": "", "Shared `x`": "", - "`x` views.(\\D|^)1(\\D|$)": "", "`x` views.": "", "Premieres in `x`": "", "Premieres `x`": "", @@ -171,11 +165,9 @@ "This channel does not exist.": "", "Could not get channel info.": "", "Could not fetch comments": "", - "View `x` replies.(\\D|^)1(\\D|$)": "", "View `x` replies.": "", "`x` ago": "", "Load more": "", - "`x` points.(\\D|^)1(\\D|$)": "", "`x` points.": "", "Could not create mix.": "", "Empty playlist": "", @@ -294,19 +286,12 @@ "Yiddish": "", "Yoruba": "", "Zulu": "", - "`x` years.(\\D|^)1(\\D|$)": "", "`x` years.": "", - "`x` months.(\\D|^)1(\\D|$)": "", "`x` months.": "", - "`x` weeks.(\\D|^)1(\\D|$)": "", "`x` weeks.": "", - "`x` days.(\\D|^)1(\\D|$)": "", "`x` days.": "", - "`x` hours.(\\D|^)1(\\D|$)": "", "`x` hours.": "", - "`x` minutes.(\\D|^)1(\\D|$)": "", "`x` minutes.": "", - "`x` seconds.(\\D|^)1(\\D|$)": "", "`x` seconds.": "", "Fallback comments: ": "", "Popular": "", @@ -331,4 +316,4 @@ "Videos": "", "Playlists": "", "Current version: ": "" -} +} \ No newline at end of file diff --git a/src/invidious.cr b/src/invidious.cr index 1ecc9d83..80fc92b8 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -80,6 +80,7 @@ LOCALES = { "es" => load_locale("es"), "eu" => load_locale("eu"), "fr" => load_locale("fr"), + "is" => load_locale("is"), "it" => load_locale("it"), "nb_NO" => load_locale("nb_NO"), "nl" => load_locale("nl"),