Get i18n translation from user via admin panel
P粉768045522
P粉768045522 2024-02-25 16:51:06
0
1
323

I'm using the i18n nuxt module to have two language modes in my application.

Currently I have two .js files, which store translation key and value pairs.

question

If after some time the user decides that some translations need to be changed, I have to update them in the mentioned .js files and rebuild and deploy the application again!

IDEAL SOLUTION

I was wondering if there is a way to provide the user with a list of translation variables and their values ​​in the admin panel so that they can change the values ​​via an API call if they see fit?

Any ideas on how to handle this would be greatly appreciated, thank you!

P粉768045522
P粉768045522

reply all(1)
P粉010967136

If you want non-technical people to edit translations in your app, you can Google a service like this: https://lokalise.com/

You will be able to insert your .js file, the person will go into the platform, have some friendly GUI to find and edit the value they want to edit, and click a button. This will result in some CI, a pull request to your codebase, and then you can roll it out at any time.

This is better than explaining to some non-technical person how to edit the .js file in VScode and push it to a remote git branch.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!