Translation is not working


#1

Hi,

I added Danish translation to /consul/config/locales/da-DK folder and I changed application.rb file to add da-DK to list of languages. But I am not getting Danish in the list of available languages on the front page and the language is not changed when I redirect to consul/?locale=da-DK

Please help!


#2

Hi @natasa,

To add a new language and make it avilable on front views you must include it on available_locales list on /consul/config/application.rb

available_locales = [
  "ar",
  "de",
  "en",
  "es",
  (...)
  "da-DK"]

:slight_smile:


#3

Hi,

I’ve already done that. But the language is not listed in the list of available languages on the front page. Do I need to somehow restart the application?


#4

Hi @natasa,

Yes, you should restart the application :slight_smile:


#5

Hi @decabeza,
How can I restart the application? Is that using Capistrano
cap production deploy:restart


#6

Yes, that should do it. Give us a shoot over here if you want to discuss about CONSUL in the Nordics!