Add placeholder file for nb translations and arrange to merge nb and
no translations at startup.
This commit is contained in:
parent
3506381789
commit
aa90ace7b4
2 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,9 @@ module I18n
|
||||||
def init_translations
|
def init_translations
|
||||||
old_init_translations
|
old_init_translations
|
||||||
|
|
||||||
|
merge_translations(:nb, translations[:no])
|
||||||
|
translations[:no] = translations[:nb]
|
||||||
|
|
||||||
friendly = translate('en', 'time.formats.friendly')
|
friendly = translate('en', 'time.formats.friendly')
|
||||||
|
|
||||||
available_locales.each do |locale|
|
available_locales.each do |locale|
|
||||||
|
|
2
config/locales/nb.yml
Normal file
2
config/locales/nb.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
nb:
|
||||||
|
dummy: dummy
|
Loading…
Add table
Add a link
Reference in a new issue