ruby on rails - adding translations to database records -
i @ end off project. implemented few languages. moment, have categories placed in database, these categories in native latvian language, trick able change language of these records simultaneously display language change.
it means if choose locale en, these category names displayed in english. ideas! store ultiple language translation within records, think it's bad idea. or store put latvian category name id inside <%= i18n.t 'category_id_in_latvian'%> , in yml files put translation ?
or there other solution?
thanks
you should take @ globalize gem:
this gem should need. ;)
and if doesn't, please, explain why providing more details on want , i'll update answer according needs.
Comments
Post a Comment