generated from element-hq/.github
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process InfoPlist.strings in Localazy config. (#2249)
Also merge the 2 configs into one using a group to download all strings.
- Loading branch information
Showing
9 changed files
with
116 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
"NSPhotoLibraryUsageDescription" = "The photo library is used to send photos and videos."; | ||
"NSCameraUsageDescription" = "To take pictures or videos and send them as a message Element X needs access to the camera."; | ||
"NSFaceIDUsageDescription" = "Face ID is used to access your app."; | ||
"NSLocationWhenInUseUsageDescription" = "Grant location access so that Element X can share your location."; | ||
"NSMicrophoneUsageDescription" = "To record and send messages with audio, Element X needs to access the microphone."; | ||
"NSPhotoLibraryUsageDescription" = "Allows saving photos and videos to your library."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"NSCameraUsageDescription" = "Per scattare foto o video e inviarli come messaggio, Element X deve accedere alla fotocamera."; | ||
"NSFaceIDUsageDescription" = "Face ID viene utilizzato per accedere alla tua app."; | ||
"NSLocationWhenInUseUsageDescription" = "Concedi l'accesso alla posizione in modo che Element X possa condividere la tua posizione."; | ||
"NSMicrophoneUsageDescription" = "Per registrare e inviare messaggi con audio, Element X deve accedere al microfono."; | ||
"NSPhotoLibraryUsageDescription" = "Consente di salvare foto e video nella tua libreria."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"NSCameraUsageDescription" = "Element X требуется доступ к камере, для того чтобы отправлять фото и видно в сообщении"; | ||
"NSFaceIDUsageDescription" = "Для доступа к приложению используется Face ID."; | ||
"NSLocationWhenInUseUsageDescription" = "Element X необходимо предоставить разрешения для отправки местоположения."; | ||
"NSMicrophoneUsageDescription" = "%s необходимо предоставить доступ к микрофону, для отправки аудиосообщений."; | ||
"NSPhotoLibraryUsageDescription" = "Разрешить сохранять фотографии и видео в библиотеку."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add support for InfoPlist.strings conversion from Localazy. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"readKey": "a7876306080832595063-aa37154bb3772f6146890fca868d155b2228b492c56c91f67abdcdfb74d6142d", | ||
|
||
"conversion": { | ||
"actions": [ | ||
{ | ||
"type": "ios-strings", | ||
"output": "ElementX/Resources/Localizations/${iosLprojFolder}/Localizable.strings", | ||
"excludeKeys": ["REGEX:.*_android"], | ||
"conditions": [ | ||
"equals: ${languageCode}, en | equals: ${file}, content.json" | ||
], | ||
"filterPlurals": true, | ||
"replacements": { | ||
"%s": "%@", | ||
"$s": "$@" | ||
}, | ||
"params": { | ||
"flatten_keys": "underscore" | ||
} | ||
}, | ||
{ | ||
"type": "ios-stringsdict", | ||
"output": "ElementX/Resources/Localizations/${iosLprojFolder}/Localizable.stringsdict", | ||
"excludeKeys": ["REGEX:.*_android"], | ||
"conditions": [ | ||
"equals: ${languageCode}, en | equals: ${file}, content.json" | ||
], | ||
"replacements": { | ||
"%s": "%@", | ||
"$s": "$@" | ||
}, | ||
"params": { | ||
"variable": "COUNT", | ||
"flatten_keys": "underscore" | ||
} | ||
}, | ||
{ | ||
"type": "ios-strings", | ||
"changeExtension": "strings", | ||
"output": "ElementX/Resources/Localizations/${iosLprojFolder}/${file}", | ||
"conditions": [ | ||
"equals: ${languageCode}, en | equals: ${file}, InfoPlist.json" | ||
] | ||
}, | ||
|
||
|
||
|
||
{ | ||
"group": "all", | ||
"type": "ios-strings", | ||
"output": "ElementX/Resources/Localizations/${iosLprojFolder}/Localizable.strings", | ||
"excludeKeys": ["REGEX:.*_android"], | ||
"conditions": [ | ||
"!equals: ${languageCode}, en | equals: ${file}, content.json" | ||
], | ||
"filterPlurals": true, | ||
"replacements": { | ||
"%s": "%@", | ||
"$s": "$@" | ||
}, | ||
"params": { | ||
"flatten_keys": "underscore" | ||
} | ||
}, | ||
{ | ||
"group": "all", | ||
"type": "ios-stringsdict", | ||
"output": "ElementX/Resources/Localizations/${iosLprojFolder}/Localizable.stringsdict", | ||
"excludeKeys": ["REGEX:.*_android"], | ||
"conditions": [ | ||
"!equals: ${languageCode}, en | equals: ${file}, content.json" | ||
], | ||
"replacements": { | ||
"%s": "%@", | ||
"$s": "$@" | ||
}, | ||
"params": { | ||
"variable": "COUNT", | ||
"flatten_keys": "underscore" | ||
} | ||
}, | ||
{ | ||
"group": "all", | ||
"type": "ios-strings", | ||
"changeExtension": "strings", | ||
"output": "ElementX/Resources/Localizations/${iosLprojFolder}/${file}", | ||
"conditions": [ | ||
"!equals: ${languageCode}, en | equals: ${file}, InfoPlist.json" | ||
] | ||
} | ||
] | ||
} | ||
} |