Jump to content

Location of translatable strings ?


Doc
 Share

Recommended Posts

Hi guys,

I'm using translatable strings such as :

echo __("Hello");

It works on my dev configuration but when I upload the website on the production environment, it only displays the default language.

Do I have to upload some special files where could be located the translations ?

Thanks

Link to comment
Share on other sites

Translation files are located in the /site/assets/ directory, as files under the language page itself. If the ID of your target language page is 1010, the translation files should be under /site/assets/files/1010/ as separate .json files.

As long as you copy / sync your assets directory to the production server, these should work as expected :)

  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...