Beam/Tools/SwiftGen/swiftgen-config.yml
Mauro d24ee73d15
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>
2023-04-05 10:36:02 +02:00

28 lines
872 B
YAML
Executable File

input_dir: ../../ElementX/
output_dir: ../../ElementX/Sources/Generated/
xcassets:
inputs:
- Resources/Assets.xcassets
outputs:
templateName: swift5
output: Assets.swift
strings:
- inputs: Resources/Localizations/en.lproj
filter: Localizable*
outputs:
templatePath: Templates/Strings/structured-swift5-element.stencil
output: Strings.swift
params:
enumName: L10n
lookupFunction: tr # used for the loc to be computed variables
publicAccess: true
- inputs: Resources/Localizations/en.lproj
filter: Untranslated*
outputs:
templatePath: Templates/Strings/structured-swift5-element-untranslated.stencil
output: Strings+Untranslated.swift
params:
enumName: UntranslatedL10n
lookupFunction: tr # used for the loc to be computed variables
publicAccess: true