mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 00:39:17 +00:00
DEV: Add spec to find MF locale for en_US
Follow-up to aecadcb2675bd24d3443b97e474bd28fdd8c74a6
This commit is contained in:
parent
a2fd8ac990
commit
eeb2855a48
@ -207,4 +207,15 @@ describe JsLocaleHelper do
|
||||
end
|
||||
end
|
||||
|
||||
describe ".find_message_format_locale" do
|
||||
it "finds locale for en_US" do
|
||||
locale, filename = JsLocaleHelper.find_message_format_locale([:en_US], fallback_to_english: false)
|
||||
expect(locale).to eq("en")
|
||||
expect(filename).to end_with("/en.js")
|
||||
|
||||
locale, filename = JsLocaleHelper.find_message_format_locale(["en_US"], fallback_to_english: false)
|
||||
expect(locale).to eq("en")
|
||||
expect(filename).to end_with("/en.js")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user