mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Localizations Setup (#6)
* Move assets into ElementX folder * Add first version of localizer script * Add generated strings & tests & fallback mechanism * Rename strings file to Localizable * Rename Assets to Resources * Calculate preferred languages only when needed, remove share extension check * Add comments in the localizer script * Add GH workflow to push issues to the [ElementX board](https://github.com/orgs/vector-im/projects/43) * Closes #16 - Add license file * New version of localizer script, handle pluralization * Move assets into ElementX folder * Add first version of localizer script * Add generated strings & tests & fallback mechanism * Rename strings file to Localizable * Rename Assets to Resources * Calculate preferred languages only when needed, remove share extension check * Add comments in the localizer script * New version of localizer script, handle pluralization * Revert login button text * Add multiple dialect pluralization, fix string formatting Co-authored-by: manuroe <manu@matrix.org> Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
This commit is contained in:
@@ -1,8 +1,26 @@
|
||||
input_dir: ../../ElementX/
|
||||
output_dir: ../../ElementX/Sources/Generated/
|
||||
xcassets:
|
||||
xcassets:
|
||||
inputs:
|
||||
- SupportingFiles/Assets.xcassets
|
||||
- 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: ElementL10n
|
||||
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-untranslated.stencil
|
||||
output: Strings+Untranslated.swift
|
||||
params:
|
||||
enumName: ElementL10n
|
||||
publicAccess: true
|
||||
|
||||
Reference in New Issue
Block a user