diff --git a/CHANGELOG.md b/CHANGELOG.md index 188462f..b521fda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ *Applanga CLI Documentation:* *** +### Version 1.0.102 (21 Nov 2024) +#### Fixed +- Fixed initialize script and documentation for android / ios default setup +--- + ### Version 1.0.101 (5 Nov 2024) #### Fixed - Added error messages for contradictory configurations diff --git a/README.md b/README.md index 1b6a197..e266840 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Applanga Localization Command Line Interface (CLI) *** -*Version:* 1.0.101 +*Version:* 1.0.102 *Website:* @@ -494,13 +494,6 @@ The base Android strings are located in `./app/src/main/res/values/strings.xml`, "base_language": "en", "pull": { "target": [ - { - "language": "en", - "file_format": "android_xml", - "export_empty": true, - "path": "./app/src/main/res/values/strings.xml", - "tag": "app:strings.xml" - }, { "exclude_languages": ["en"], "file_format": "android_xml", @@ -516,12 +509,6 @@ The base Android strings are located in `./app/src/main/res/values/strings.xml`, "file_format": "android_xml", "path": "./app/src/main/res/values/strings.xml", "tag": "app:strings.xml" - }, - { - "exclude_languages": ["en"], - "file_format": "android_xml", - "path": "./app/src/main/res/values-/strings.xml", - "tag": "app:strings.xml" } ] } @@ -540,39 +527,18 @@ Apps can have strings in multiple files or in shared libraries. You can specify "base_language": "en", "pull": { "target": [ - { - "language": "en", - "file_format": "android_xml", - "export_empty": true, - "tag": "app:strings.xml", - "path": "./app/src/main/res/values/strings.xml" - }, { "exclude_languages": ["en"], "file_format": "android_xml", "tag": "app:strings.xml", "path": "./app/src/main/res/values-/strings.xml" }, - { - "language": "en", - "file_format": "android_xml", - "export_empty": true, - "tag": "app:other.xml", - "path": "./app/src/main/res/values/other.xml" - }, { "exclude_languages": ["en"], "file_format": "android_xml", "tag": "module:other.xml", "path": "./app/src/main/res/values-/other.xml" }, - { - "language": "en", - "file_format": "android_xml", - "export_empty": true, - "tag": "module:strings.xml", - "path": "./mylibrary/src/main/res/values/strings.xml" - }, { "exclude_languages": ["en"], "file_format": "android_xml", @@ -589,35 +555,17 @@ Apps can have strings in multiple files or in shared libraries. You can specify "tag": "app:strings.xml", "path": "./app/src/main/res/values/strings.xml" }, - { - "exclude_languages": ["en"], - "file_format": "android_xml", - "tag": "app:strings.xml", - "path": "./app/src/main/res/values-/strings.xml" - }, { "language": "en", "file_format": "android_xml", "tag": "app:other.xml", "path": "./app/src/main/res/values/other.xml" }, - { - "exclude_languages": ["en"], - "file_format": "android_xml", - "tag": "app:other.xml", - "path": "./app/src/main/res/values-/other.xml" - }, { "language": "en", "file_format": "android_xml", "tag": "module:strings.xml", "path": "./mylibrary/src/main/res/values/strings.xml" - }, - { - "exclude_languages": ["en"], - "file_format": "android_xml", - "tag": "module:strings.xml", - "path": "./mylibrary/src/main/res/values-/strings.xml" } ] } @@ -637,13 +585,6 @@ If Base Localization is enabled, the base iOS strings are located in `./Base.lpr "base_language": "en", "pull": { "target": [ - { - "language": "en", - "file_format": "ios_strings", - "export_empty": true, - "path": "./Base.lproj/Localizable.strings", - "tag": "app:Localizable.strings" - }, { "exclude_languages": ["en"], "file_format": "ios_strings", @@ -659,12 +600,6 @@ If Base Localization is enabled, the base iOS strings are located in `./Base.lpr "file_format": "ios_strings", "path": "./Base.lproj/Localizable.strings", "tag": "app:Localizable.strings" - }, - { - "exclude_languages": ["en"], - "file_format": "ios_strings", - "path": "./.lproj/Localizable.strings", - "tag": "app:Localizable.strings" } ] } @@ -689,39 +624,18 @@ For Pluralization, apple introduced the [.stringsdict File Format](https://devel "base_language": "en", "pull": { "target": [ - { - "language": "en", - "file_format": "ios_strings", - "tag": "app:Localizable.strings", - "export_empty": true, - "path": "./Base.lproj/Localizable.strings" - }, { "exclude_languages": ["en"], "file_format": "ios_strings", "tag": "app:Localizable.strings", "path": "./.lproj/Localizable.strings" }, - { - "language": "en", - "file_format": "ios_stringsdict", - "tag": "app:Localizable.strings", - "export_empty": true, - "path": "./Base.lproj/Localizable.stringsdict" - }, { "exclude_languages": ["en"], "file_format": "ios_stringsdict", "tag": "app:Localizable.strings", "path": "./.lproj/Localizable.stringsdict" }, - { - "language": "en", - "file_format": "ios_strings", - "tag": "storyboard:Localizable.strings", - "export_empty": true, - "path": "./Base.lproj/MainStoryboard.strings" - }, { "exclude_languages": ["en"], "file_format": "ios_strings", @@ -739,35 +653,17 @@ For Pluralization, apple introduced the [.stringsdict File Format](https://devel "export_empty": true, "path": "./Base.lproj/Localizable.strings" }, - { - "exclude_languages": ["en"], - "file_format": "ios_strings", - "tag": "app:Localizable.strings", - "path": "./.lproj/Localizable.strings" - }, { "language": "en", "file_format": "ios_stringsdict", "tag": "app:Localizable.strings", "path": "./Base.lproj/Localizable.stringsdict" }, - { - "exclude_languages": ["en"], - "file_format": "ios_stringsdict", - "tag": "app:Localizable.strings", - "path": "./.lproj/Localizable.stringsdict" - }, { "language": "en", "file_format": "ios_strings", "tag": "storyboard:Localizable.strings", "path": "./Base.lproj/MainStoryboard.strings" - }, - { - "exclude_languages": ["en"], - "file_format": "ios_strings", - "tag": "storyboard:Localizable.strings", - "path": "./.lproj/MainStoryboard.strings" } ] } diff --git a/commands/init.py b/commands/init.py index fe586bf..4e3aafd 100644 --- a/commands/init.py +++ b/commands/init.py @@ -164,12 +164,6 @@ def init(ctx): 'file_format': file_format, 'path': baselanguage_path, 'tag': tag - }, - { - 'exclude_languages': [base_language], - 'file_format': file_format, - 'path': source_path, - 'tag': tag } ] }, diff --git a/lib/constants.py b/lib/constants.py index 28c5220..7049e49 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -1,4 +1,4 @@ -VERSION_NUMBER = '1.0.101' +VERSION_NUMBER = '1.0.102' APPLANGA_HOST = 'https://api.applanga.com' API_BASE_PATH = '/v1/api' CONFIG_FILE_NAME = '.applanga.json'