i18n-active_record | I18n ActiveRecord backend | Web Framework library
kandi X-RAY | i18n-active_record Summary
kandi X-RAY | i18n-active_record Summary
I18n ActiveRecord backend
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of i18n-active_record
i18n-active_record Key Features
i18n-active_record Examples and Code Snippets
Community Discussions
Trending Discussions on i18n-active_record
QUESTION
My app is currently using the gem i18n-active_record
for translations, storing them in a table translations
which has more than 5000 records.
To improve performance, I want to move the translations to YAML files, e.g. en.yml
and ar.yml
.
I tried File.open(Rails.root+'config/locales/en.yml', 'w') {|f| f.write translation.to_yaml }
but the output generated is the following:
ANSWER
Answered 2019-Aug-04 at 17:51You can try something like this (I don't have any DB backed Rails Translations to try this)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install i18n-active_record
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page