The Translation Editor of my Android Studio does not work properly. If I open the translation editor does list the correct keys of the strings, however the default values and the translations can not be found. All keys have a default value and most of them have a translation, too.
I restarted Android Studio, performed a clean and rebuild, however the translation editor does not work. Any ideas or suggestions how to fix this?
Open from the Android viewIn the Project > Android panel on the left, select ModuleName > res > values. Right-click the strings. xml file, and select Open Translations Editor. The Translations Editor displays the key and value pairs from the strings.
In the Translation Editor, click the globe-icon to add a new language file, in our example we will add 'de' (German) and 'es"(Spanish). You may need to close and re-open the Translation Editor tab after adding a new language if it does not show up immediately.
TranslationZ is a dynamic property used for animation. Basically it's needed to nicely handle elevation changes.
Try File --> Invalidate Caches / Restart .. It solved the same issue with me ..
In my case, Translations Editor didn't show my other languages too. But my problem was I had empty strings.xml files for those languages. I mean, like following:
<resources>
</resources>
Once I added some string in those files, even if they were empty, it began appearing in Translations Editor, such as following:
<resources>
<string name="any_string" />
</resources>
Although you might need to click on refresh button at Translations Editor to update the view.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With