Skip to content

Commit

Permalink
#37 update Scribe-i18n structure and fix conversion workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Aug 15, 2024
1 parent 6a8faaa commit aafa0f6
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/json_conversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- 'Scribe-i18n/**.json'
- "Scribe-i18n/jsons/**.json"

jobs:
# Run JSON to app strings conversion scripts if needed.
Expand All @@ -18,5 +18,5 @@ jobs:
python-version: 3.12
- name: Execute script to convert JSON to string files
run: |
python ./Scripts/Android/convert_jsons_to_strings.py
python ./Scripts/iOS/convert_jsons_to_xcstrings.py
python scripts/android/convert_jsons_to_strings.py
python scripts/ios/convert_jsons_to_xcstrings.py
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ If all looks good, then you're ready to start adding localizable key-string pair
### File Conversion
The files in the [Scribe-i18n/Scripts](https://github.com/scribe-org/Scribe-i18n/tree/main/Scribe-i18n/Scripts) directory can be used to convert base localization JSON files into the filetypes that are needed for an application as well as the same in reverse. JSON files are automatically converted to their target files for Scribe applications after commits to the main branch, and their opposites can be used to update the JSON files when strings are first changed in the applications.
The files in the [Scribe-i18n/scripts](https://github.com/scribe-org/Scribe-i18n/tree/main/Scribe-i18n/scripts) directory can be used to convert base localization JSON files into the filetypes that are needed for an application as well as the same in reverse. JSON files are automatically converted to their target files for Scribe applications after commits to the main branch, and their opposites can be used to update the JSON files when strings are first changed in the applications.
### Adding Scribe-i18n to Projects [`⇧`](#contents)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Converts from Scribe-i18n localization JSON files to string.xml files.
Usage:
python3 Scribe-i18n/Scripts/Android/convert_jsons_to_strings.py
python3 Scribe-i18n/scripts/android/convert_jsons_to_strings.py
"""
import os
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Converts from string.xml files to Scribe-i18n localization JSON files.
Usage:
python3 Scribe-i18n/Scripts/Android/convert_strings_to_json.py
python3 Scribe-i18n/scripts/android/convert_strings_to_json.py
"""

import os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Usage:
python3 Scribe-i18n/Scripts/iOS/convert_jsons_to_xcstrings.py
python3 Scribe-i18n/scripts/ios/convert_jsons_to_xcstrings.py
"""

import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Converts from the Scribe-i18n Localizable.xcstrings file to localization JSON files.
Usage:
python3 Scribe-i18n/Scripts/iOS/convert_xcstrings_to_jsons.py
python3 Scribe-i18n/scripts/ios/convert_xcstrings_to_jsons.py
"""

import json
Expand Down

0 comments on commit aafa0f6

Please sign in to comment.