Implementing i18n with dynamic data
Unanswered
Japanese jack mackerel posted this in #help-forum
Japanese jack mackerelOP
Hi there am trying to implement i18n in my project. what am trying to achieve is to have 2 versions, French & English for the whole project including my data, the thing that confuses me is how to achieve that.. lets say i have details data for product details stored such as title, description, images, size etc and lets say i store my data in english format how can i have translation for each Product based on their discription title and other data..
2 Replies
@Japanese jack mackerel Hi there am trying to implement i18n in my project. what am trying to achieve is to have 2 versions, French & English for the whole project including my data, the thing that confuses me is how to achieve that.. lets say i have details data for product details stored such as title, description, images, size etc and lets say i store my data in english format how can i have translation for each Product based on their discription title and other data..
you can do that by creating a
translations table. In this table are all translations store, that you added for specific products. When fetching your products, you also fetch your translations as well. After you got your original product information and your translations, you can translate your product info with your own function. Then you have your dynamic data like before, but perfectly translated@Japanese jack mackerel solved?