summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2021-07-26 00:12:43 +0200
committerGitHub <noreply@github.com>2021-07-26 00:12:43 +0200
commit3a84e3abcfb98216d7317befcf1dfc145a18b4da (patch)
tree16a0997b624689572f5f82eb37563bc1478c5777
parente4c223ca59c64f7887ab2c14e1e966a5c09e57df (diff)
downloadinvidious-3a84e3abcfb98216d7317befcf1dfc145a18b4da.tar.gz
invidious-3a84e3abcfb98216d7317befcf1dfc145a18b4da.tar.bz2
invidious-3a84e3abcfb98216d7317befcf1dfc145a18b4da.zip
Remove locales consistency check
This is not required anymore, due to the new weblate config (from now on, weblate adds strings as they are translated).
-rw-r--r--spec/locales_spec.cr29
1 files changed, 0 insertions, 29 deletions
diff --git a/spec/locales_spec.cr b/spec/locales_spec.cr
deleted file mode 100644
index 6a083ee7..00000000
--- a/spec/locales_spec.cr
+++ /dev/null
@@ -1,29 +0,0 @@
-require "spec"
-require "json"
-require "../src/invidious/helpers/i18n.cr"
-
-describe "Locales" do
- describe "#consistency" do
- locales_list = LOCALES.keys.select! { |key| key != "en-US" }
-
- locales_list.each do |locale|
- puts "\nChecking locale #{locale}"
- failed = false
-
- # Use "en-US" as the reference
- LOCALES["en-US"].each_key do |ref_key|
- # Catch exception in order to give a hint on what caused
- # the failure, and test one locale completely before failing
- begin
- LOCALES[locale].has_key?(ref_key).should be_true
- rescue
- failed = true
- puts " Missing key in locale #{locale}: '#{ref_key}'"
- end
- end
-
- # Throw failed assertion exception in here
- failed.should be_false
- end
- end
-end