Fixed translation bug when the locale contained the region (#765)

* Fixed the issue, added tests and italian translation

* changelog

* improved translation handling code and added more tests

* Update UnitTests/Sources/LocalizationTests.swift

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>

---------

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
This commit is contained in:
Mauro
2023-04-05 10:36:02 +02:00
committed by GitHub
parent df92eed1a0
commit d24ee73d15
13 changed files with 499 additions and 345 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ strings:
- inputs: Resources/Localizations/en.lproj
filter: Untranslated*
outputs:
templatePath: Templates/Strings/structured-swift5-element.stencil
templatePath: Templates/Strings/structured-swift5-element-untranslated.stencil
output: Strings+Untranslated.swift
params:
enumName: UntranslatedL10n