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:
ismailgulek
2022-04-26 22:48:17 +03:00
committed by GitHub
parent dc0bc5d9a4
commit 25eea4bcf1
184 changed files with 109472 additions and 14 deletions
File diff suppressed because it is too large Load Diff
@@ -1,261 +0,0 @@
{"images":[
{
"size":"1024x1024",
"idiom":"ios-marketing",
"filename":"appicon_1024.png",
"scale":"1x"
},
{
"size":"20x20",
"idiom":"iphone",
"filename":"appicon_40.png",
"scale":"2x"
},
{
"size":"20x20",
"idiom":"iphone",
"filename":"appicon_60.png",
"scale":"3x"
},
{
"size":"29x29",
"idiom":"iphone",
"filename":"appicon_29.png",
"scale":"1x"
},
{
"size":"29x29",
"idiom":"iphone",
"filename":"appicon_58.png",
"scale":"2x"
},
{
"size":"29x29",
"idiom":"iphone",
"filename":"appicon_87.png",
"scale":"3x"
},
{
"size":"40x40",
"idiom":"iphone",
"filename":"appicon_80.png",
"scale":"2x"
},
{
"size":"40x40",
"idiom":"iphone",
"filename":"appicon_120.png",
"scale":"3x"
},
{
"size":"57x57",
"idiom":"iphone",
"filename":"appicon_57.png",
"scale":"1x"
},
{
"size":"57x57",
"idiom":"iphone",
"filename":"appicon_114.png",
"scale":"2x"
},
{
"size":"60x60",
"idiom":"iphone",
"filename":"appicon_120.png",
"scale":"2x"
},
{
"size":"60x60",
"idiom":"iphone",
"filename":"appicon_180.png",
"scale":"3x"
},
{
"size":"20x20",
"idiom":"ipad",
"filename":"appicon_20.png",
"scale":"1x"
},
{
"size":"20x20",
"idiom":"ipad",
"filename":"appicon_40.png",
"scale":"2x"
},
{
"size":"29x29",
"idiom":"ipad",
"filename":"appicon_29.png",
"scale":"1x"
},
{
"size":"29x29",
"idiom":"ipad",
"filename":"appicon_58.png",
"scale":"2x"
},
{
"size":"40x40",
"idiom":"ipad",
"filename":"appicon_40.png",
"scale":"1x"
},
{
"size":"40x40",
"idiom":"ipad",
"filename":"appicon_80.png",
"scale":"2x"
},
{
"size":"50x50",
"idiom":"ipad",
"filename":"appicon_50.png",
"scale":"1x"
},
{
"size":"50x50",
"idiom":"ipad",
"filename":"appicon_100.png",
"scale":"2x"
},
{
"size":"72x72",
"idiom":"ipad",
"filename":"appicon_72.png",
"scale":"1x"
},
{
"size":"72x72",
"idiom":"ipad",
"filename":"appicon_144.png",
"scale":"2x"
},
{
"size":"76x76",
"idiom":"ipad",
"filename":"appicon_76.png",
"scale":"1x"
},
{
"size":"76x76",
"idiom":"ipad",
"filename":"appicon_152.png",
"scale":"2x"
},
{
"size":"83.5x83.5",
"idiom":"ipad",
"filename":"appicon_167.png",
"scale":"2x"
},
{
"size":"60x60",
"idiom":"car",
"filename":"appicon_120.png",
"scale":"2x"
},
{
"size":"60x60",
"idiom":"car",
"filename":"appicon_180.png",
"scale":"3x"
},
{
"size":"16x16",
"idiom":"mac",
"filename":"appicon_16.png",
"scale":"1x"
},
{
"size":"16x16",
"idiom":"mac",
"filename":"appicon_32.png",
"scale":"2x"
},
{
"size":"32x32",
"idiom":"mac",
"filename":"appicon_32.png",
"scale":"1x"
},
{
"size":"32x32",
"idiom":"mac",
"filename":"appicon_64.png",
"scale":"2x"
},
{
"size":"128x128",
"idiom":"mac",
"filename":"appicon_128.png",
"scale":"1x"
},
{
"size":"128x128",
"idiom":"mac",
"filename":"appicon_256.png",
"scale":"2x"
},
{
"size":"256x256",
"idiom":"mac",
"filename":"appicon_256.png",
"scale":"1x"
},
{
"size":"256x256",
"idiom":"mac",
"filename":"appicon_512.png",
"scale":"2x"
},
{
"size":"512x512",
"idiom":"mac",
"filename":"appicon_512.png",
"scale":"1x"
},
{
"size":"512x512",
"idiom":"mac",
"filename":"appicon_1024.png",
"scale":"2x"
}
],
"info":{
"version":1,
"author":"xcode"
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 778 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 440 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

@@ -1,38 +0,0 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "240",
"green" : "240",
"red" : "240"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "100",
"green" : "100",
"red" : "100"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -1,9 +0,0 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"provides-namespace" : true
}
}
@@ -1,38 +0,0 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "139",
"green" : "189",
"red" : "13"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "139",
"green" : "198",
"red" : "13"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -1,6 +0,0 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -1,9 +0,0 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"provides-namespace" : true
}
}
@@ -1,26 +0,0 @@
{
"images" : [
{
"filename" : "launch_screen_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "launch_screen_logo@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "launch_screen_logo@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

@@ -1,23 +0,0 @@
{
"images" : [
{
"filename" : "send_message_icon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "send_message_icon@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "send_message_icon@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 960 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

@@ -1,23 +0,0 @@
{
"images" : [
{
"filename" : "timelineScrollToBottom.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "timelineScrollToBottom@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "timelineScrollToBottom@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 735 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

+1
View File
@@ -84,4 +84,5 @@ targets:
- path: ../Sources
excludes:
- Screens/Templates
- path: ../Resources
- path: ../SupportingFiles