Best location for theme translation files

I usually store language files in /languages folder that is located in theme folder and it’s also recommended location by WordPress as well. However, it still doesn’t look like the best solution because files will be overwritten after theme updates.

load_theme_textdomain function allows to specify a different location and I’ve been thinking to put languages folder inside of /uploads folder in order to prevent overwriting after theme updates. That folder will be created right after theme activation and language files will be copied there.

My question is, do you think this is a good solution or there is a better way that I’m missing?

I appreciate your insight about this matter.

Read more here: Best location for theme translation files

Leave a Reply

Your email address will not be published. Required fields are marked *