FEATURE: Add English (UK) as locale (#11768)

* "English" gets renamed into "English (US)"
* "English (UK)" replaces "English"

@discourse-translator-bot keep_translations_and_approvals
This commit is contained in:
Gerhard Schlager
2021-01-20 21:32:22 +01:00
committed by GitHub
parent 0b07085d72
commit 3b2f6e129a
28 changed files with 341 additions and 302 deletions

View File

@@ -354,7 +354,7 @@ describe BadgeGranter do
it 'removes custom badge titles' do
custom_badge_title = 'this is a badge title'
TranslationOverride.create!(translation_key: badge.translation_key, value: custom_badge_title, locale: 'en_US')
TranslationOverride.create!(translation_key: badge.translation_key, value: custom_badge_title, locale: 'en')
described_class.grant(badge, user)
user.update!(title: custom_badge_title)