Files
nairobi/config/initializers
Javi Martín 3b5a12b0ab Don't force translations for the current locale
Globalize creates a translation for the current locale, and the only way
I've found to change this behaviour is to monkey-patch it.

The original code uses `translation.locale` instead of
`Globalize.locale`. Since `translation.locale` loads the translation
with empty attributes. It both makes the record invalid if there are
validations and it makes it almost impossible to create a record with
translations which don't include the current locale.

See also the following convertations:

https://github.com/globalize/globalize/pull/328
https://github.com/globalize/globalize/issues/468
https://github.com/globalize/globalize/pull/578
https://github.com/shioyama/mobility/wiki/Migrating-from-Globalize#blank-translations
2018-10-22 16:28:53 +02:00
..
2015-11-03 16:11:09 +01:00
2018-09-26 12:34:16 +02:00
2015-07-15 13:32:13 +02:00
2018-09-12 12:35:28 +02:00
2015-07-15 13:32:13 +02:00
2015-09-03 23:31:14 +02:00
2015-07-15 13:32:13 +02:00
2017-05-11 22:42:43 +02:00
2015-08-29 13:49:32 +02:00
2017-04-03 12:30:57 +02:00
2015-07-15 13:32:13 +02:00
2018-08-13 11:27:49 +02:00
2015-07-15 13:32:13 +02:00