search

Home  >  Q&A  >  body text

Get i18n translation from user via admin panel

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粉768045522P粉768045522321 days ago420

reply all(1)I'll reply

  • P粉010967136

    P粉0109671362024-02-26 14:01:53

    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.

    reply
    0
  • Cancelreply