{"id":17069985,"url":"https://github.com/mineschan/locomobileexport","last_synced_at":"2025-07-05T06:36:54.256Z","repository":{"id":62446636,"uuid":"109670415","full_name":"mineschan/LocoMobileExport","owner":"mineschan","description":"An exporter script for Localise.biz projects for iOS and Android projects","archived":false,"fork":false,"pushed_at":"2019-09-19T03:13:39.000Z","size":48,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T19:41:24.681Z","etag":null,"topics":["android","automation","bash","ios","localisation","localization","localization-management","shell-script"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mineschan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-06T08:55:18.000Z","updated_at":"2024-11-21T11:35:02.000Z","dependencies_parsed_at":"2022-11-01T22:46:58.281Z","dependency_job_id":null,"html_url":"https://github.com/mineschan/LocoMobileExport","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/mineschan/LocoMobileExport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mineschan%2FLocoMobileExport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mineschan%2FLocoMobileExport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mineschan%2FLocoMobileExport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mineschan%2FLocoMobileExport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mineschan","download_url":"https://codeload.github.com/mineschan/LocoMobileExport/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mineschan%2FLocoMobileExport/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263698119,"owners_count":23497904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","automation","bash","ios","localisation","localization","localization-management","shell-script"],"created_at":"2024-10-14T11:28:41.519Z","updated_at":"2025-07-05T06:36:54.229Z","avatar_url":"https://github.com/mineschan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LocoMobileExport\nAn exporter script for Localise.biz projects for iOS and Android projects\n\n## What is LocoMobileExport\n\n```TODO```\n\n## How to use it?\n\n### iOS via CocoaPods\n\nAdd this to your Podfile, then run ```pod install```\n\n```pod 'LocoMobileExport'```\n\nTo integrate automatic update the .strings files when you build the project everytime, please follow below\n steps:\n\n1. Go to `YOUR TARGET` -\u003e `Build Settings`, add an `User Defined Settings`\n2. Set key to `LOCO_API_KEY` and paste in the API Key value from your Localise.biz project.\n3. Navigate to `Build Phases`, add a run script.\n\n```bash\nSCRIPT=$PODS_ROOT/LocoMobileExport/Sources/auto_export.sh\n\n#Need to config the options, see below\n$SCRIPT ios --key $LOCO_API_KEY --map 'en=en' --map 'zh=zh-Hant' --output \"$PROJECT_DIR/{path_to_lproj_dir}}\"\n```\n\n4. Build the project and see the magic!\n\n\n### Android via Gradle task \u0026 Shell script\n\n1. Download the latest release, unzip it to your project root or anywhere you prefer.\n2. Create a bash script in your project root, e.g. `updateLoco.sh`\n3. Make it executable by `chmod +x updateLoco.sh`\n4. Paste script and modify it to match your project\n\n```bash\nKEY=YOUR_API_KEY_HERE  #1)Change this\nSCRIPT=LocoMobileExport/Sources/auto_export.sh #2)..and this\n\n#3)..and the map arguments below\n$SCRIPT android --key $KEY --map \"en_HK=values\" --output \"${PWD}/app/src/main/res\"\n```\n\n5. Add these lines in your `Build.gradle`\n\n```gradle\ntask locoExport(type: Exec) {\n    doFirst {\n        workingDir rootProject.projectDir\n        commandLine \"./updateLoco.sh\"\n    }\n}\n//run task before every build\npreBuild.dependsOn(locoExport)\n\n//or you can choose to update loco when you clean the project\n//clean.dependsOn(locoExport) \n```\n\n\n## Options\n\nOption | Explanation\n------- | -------\n{Platform} | `ios` or `android`\n--key | Provide the project API Key from localise.biz\n--output | Specific the path of where the `.lproj` folder is e.g. `--output \"$PROJECT_DIR/MyApp\"`\n--map (iOS) | `en_US` on localise.biz exports, `en.lproj` in the xcode project, use `--map 'en_US=en'`, can map as many as you want to meet your project setup.\n--map (Android) | `en_US` on localise.biz exports, `values` in the res directory, use `--map 'en_US=values'`, can map as many as you want to meet your project setup.\n--tags (optional) | Coma separated Loco tags\n--plurals (optional) | `true` if resources should be exported as plural resource file\n--name (optional) | The name of the strings file. Default is `localizable`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmineschan%2Flocomobileexport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmineschan%2Flocomobileexport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmineschan%2Flocomobileexport/lists"}