Javi Martín
9d627f2db9
Remove redundant I18nContent scope
...
Since two records cannot have the same key, having a scope that will
always return just one record is the same as using `find_by_key`.
2019-09-24 19:29:46 +02:00
Javi Martín
a5ba13b599
Apply Rails/Presence rubocop rule
2019-09-10 21:43:38 +02:00
Julian Herrero
a8d8d2cdf9
Use double quotes in config/initializers
2019-03-15 10:29:03 +01:00
rgarcia
4c8b174274
Display only translations for the current language
...
After creating a translation in spanish, it was also displaying it when selecting
the english locale.
This was due to the code picking the first translation available
With this commit, we are checking for an existing translation in the current locale
and displaying it if it exists
2018-07-26 21:55:07 -04:00
Angel Perez
113981c573
Avoid unnecessary DB call on I18nTranslation initializer
2018-07-26 19:09:36 -04:00
Angel Perez
7255c6cb9b
Fallback to default I18n value if translation is not available
2018-07-26 19:07:47 -04:00
Angel Perez
bc152acaf2
Don't evaluate a conditional and assign a variable on the same line
2018-07-26 19:06:44 -04:00
Angel Perez
26965b43ee
Clean I18n codebase
2018-07-26 19:06:29 -04:00
Raúl Fuentes
6d6dc32c38
Complete basic I18n backend and frontend
2018-07-26 19:06:19 -04:00