Fixed
Status Update
Comments
rm...@google.com <rm...@google.com> #2
Thank you for your feedback. Team may reach out for more feedback in reproducing or triaging this issue.
kd...@google.com <kd...@google.com> #3
This should be fixed now. I've tested it in the latest version of Studio and we do insert in the correct location.
va...@gmail.com <va...@gmail.com> #4
Is that Android Studio C, D, E or F?
va...@gmail.com <va...@gmail.com> #5
It broke with IntelliJ 2024.1 -
Description
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="legal_preference_about_privacy_policy">Privacy Policy</string>
<string name="legal_preference_about_terms_and_conditions">Terms and Conditions</string>
</resources>
```
When I'm adding a new resource at the front:
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="legal_preference_about_title">Legal</string>
<string name="legal_preference_about_privacy_policy">Privacy Policy</string>
<string name="legal_preference_about_terms_and_conditions">Terms and Conditions</string>
</resources>
```
and then inserting all of the translations via the Translation editor the new strings are appended at the end and not where the original translation key was added.
Current output:
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="legal_preference_about_privacy_policy">Datenschutzbestimmungen</string>
<string name="legal_preference_about_terms_and_conditions">Geschäftsbedingungen</string>
<string name="legal_preference_about_title">Rechtliches</string>
</resources>
```
Desired output:
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="legal_preference_about_title">Rechtliches</string>
<string name="legal_preference_about_privacy_policy">Datenschutzbestimmungen</string>
<string name="legal_preference_about_terms_and_conditions">Geschäftsbedingungen</string>
</resources>
```
Is it possible to insert the key at the index of the original key (values qualifier)?