Class: I18n::PostgresJson::Backend
- Inherits:
-
Object
- Object
- I18n::PostgresJson::Backend
- Includes:
- Backend::Base
- Defined in:
- lib/i18n/postgres_json/backend.rb
Instance Method Summary collapse
- #available_locales ⇒ Object
- #available_locales=(available_locales) ⇒ Object
- #store_translations(locale, data, **options) ⇒ Object
Instance Method Details
#available_locales ⇒ Object
10 11 12 |
# File 'lib/i18n/postgres_json/backend.rb', line 10 def available_locales @available_locales || Translation.available_locales end |
#available_locales=(available_locales) ⇒ Object
6 7 8 |
# File 'lib/i18n/postgres_json/backend.rb', line 6 def available_locales=(available_locales) @available_locales = Array(available_locales).map(&:to_sym).presence end |
#store_translations(locale, data, **options) ⇒ Object
14 15 16 |
# File 'lib/i18n/postgres_json/backend.rb', line 14 def store_translations(locale, data, **) Translation.store_translations(locale, data) end |