-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into ts-react-i18next
* develop: 0.9.5 (#604) Add yarn start, run-ios, run-android scripts (#558) Add Arabic Language + Right to left App behavior (#581) Enable Google import button in all builds (#599) Stop lint-diff on master, fails always (#600) Refactor NativePicker, detect device language better (#557) Bug/fix spurious linking errors yarn install (#596) Tweaks to better support small screens (#577) Fix some yellow box warnings (#598) Set returnEmptyString to false (#597) [i18n] Upload strings to Lokalise, when merged into develop (#592)
- Loading branch information
Showing
46 changed files
with
769 additions
and
479 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: i18n | ||
|
||
on: | ||
# upload strings merged into develop | ||
push: | ||
branches: [develop] | ||
paths: | ||
- app/locales/en.json | ||
- ios/en.lproj/*.strings | ||
- android/app/src/main/res/values/strings.xml | ||
# for testing | ||
# pull_request: | ||
# branches: [develop] | ||
# paths: | ||
# - app/locales/en.json | ||
# - ios/en.lproj/*.strings | ||
# - android/app/src/main/res/values/strings.xml | ||
|
||
jobs: | ||
lokalise-upload: | ||
runs-on: ubuntu-latest | ||
env: | ||
UPLOAD_FLAGS: --lang-iso=en --cleanup-mode --replace-modified --include-path --detect-icu-plurals --apply-tm --convert-placeholders --project-id=${{ secrets.LOKALISE_PROJECT_ID }} --token=${{ secrets.LOKALISE_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- run: curl -sfL https://raw.githubusercontent.com/lokalise/lokalise-cli-2-go/master/install.sh | sh | ||
|
||
- name: upload English files | ||
run: ./bin/lokalise2 file upload --file=app/locales/en.json,ios/en.lproj/InfoPlist.strings,ios/en.lproj/Localizable.strings,android/app/src/main/res/values/strings.xml $UPLOAD_FLAGS |
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,11 +1,6 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- release-candidate | ||
- master | ||
pull_request: | ||
branches: | ||
- develop | ||
|
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
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
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,12 @@ | ||
// Custome Text handling RTL and LTR text direction | ||
import styled from '@emotion/native'; | ||
|
||
import languages from '../locales/languages'; | ||
|
||
// Themes to be added | ||
|
||
const getCurrentDirection = () => languages.dir(); | ||
|
||
export const DynamicTextInput = styled.TextInput` | ||
writing-direction: ${getCurrentDirection}; | ||
`; |
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
Oops, something went wrong.