Describe the bug
Keys/values like 08 and 09 lose their quotes when the YAML is
re-serialized, while 01-07 keep them. This is because 08/09
are invalid octals in YAML 1.1.
Result: the translations for the 08 and 09 keys doesn't stay
Extension Version
lokalise.i18n-ally v.2.13.1
Framework/i18n package you are using
- Framework: React (Vite)
- i18n package: react-i18next
- Locale format: YAML (split by namespace)
To Reproduce
Before:
'07': Value
'08': Value
'09': Value
After i18n-ally edits:
'07': Value
08: Value # Lost quotes!
09: Value # Lost quotes!
Steps to reproduce the behavior:
- Open a YAML locale file with keys like '08', '09'
- Use i18n-ally to translate a string in that file
- Save the file
- Observe that '08' and '09' keys lost their quotes
Device Infomation
- OS: macOS
- Version: 26.2 (25C56)
- VS Code Version: 1.109.0
Extension Log
Go to View -> Output -> i18n Ally, and paste the content below. You should mask any sensitive information
π Translating "geo.country.ke.subdivision.09" (en->bg)
π Translating "geo.country.ke.subdivision.09" (en->el)
π Translating "geo.country.ke.subdivision.09" (en->fi)
π Translating "geo.country.ke.subdivision.09" (en->no)
π Translating "geo.country.ke.subdivision.09" (en->tr)
πΎ Writing /Users/skye/Documents/Coding/NomadsMap/functions/src/shared/locales/bg/geo.yml
πΎ Writing /Users/skye/Documents/Coding/NomadsMap/functions/src/shared/locales/el/geo.yml
πΎ Writing /Users/skye/Documents/Coding/NomadsMap/functions/src/shared/locales/fi/geo.yml
πΎ Writing /Users/skye/Documents/Coding/NomadsMap/functions/src/shared/locales/no/geo.yml
πΎ Writing /Users/skye/Documents/Coding/NomadsMap/functions/src/shared/locales/tr/geo.yml
β
Loading finished
Expected behavior
Numeric string keys like '08' and '09' should retain their quotes
after the file is re-serialized, consistent with '01'-'07'.
Describe the bug
Keys/values like
08and09lose their quotes when the YAML isre-serialized, while
01-07keep them. This is because08/09are invalid octals in YAML 1.1.
Result: the translations for the 08 and 09 keys doesn't stay
Extension Version
lokalise.i18n-ally v.2.13.1
Framework/i18n package you are using
To Reproduce
Before:
After i18n-ally edits:
Steps to reproduce the behavior:
Device Infomation
Extension Log
Go to
View->Output->i18n Ally, and paste the content below. You should mask any sensitive informationExpected behavior
Numeric string keys like '08' and '09' should retain their quotes
after the file is re-serialized, consistent with '01'-'07'.