{"id":19522916,"url":"https://github.com/konifar/localizable-strings-checker","last_synced_at":"2025-08-30T20:16:35.885Z","repository":{"id":253209007,"uuid":"842770771","full_name":"konifar/localizable-strings-checker","owner":"konifar","description":"A GitHub Action to lint and validate localization files, ensuring consistency across different languages in your project.","archived":false,"fork":false,"pushed_at":"2024-08-16T20:11:23.000Z","size":38,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T01:53:48.023Z","etag":null,"topics":["i18n","ios","linter","localizable-strings","localization"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/konifar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-15T03:33:35.000Z","updated_at":"2024-08-24T23:50:51.000Z","dependencies_parsed_at":"2024-08-17T00:02:27.889Z","dependency_job_id":null,"html_url":"https://github.com/konifar/localizable-strings-checker","commit_stats":null,"previous_names":["konifar/localizable-strings-checker"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/konifar/localizable-strings-checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konifar%2Flocalizable-strings-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konifar%2Flocalizable-strings-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konifar%2Flocalizable-strings-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konifar%2Flocalizable-strings-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konifar","download_url":"https://codeload.github.com/konifar/localizable-strings-checker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konifar%2Flocalizable-strings-checker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272900171,"owners_count":25012037,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["i18n","ios","linter","localizable-strings","localization"],"created_at":"2024-11-11T00:41:33.651Z","updated_at":"2025-08-30T20:16:35.840Z","avatar_url":"https://github.com/konifar.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# localizable-strings-checker\n\n[![RSpec Tests](https://github.com/konifar/localizable-strings-checker/actions/workflows/rspec.yml/badge.svg)](https://github.com/konifar/localizable-strings-checker/actions/workflows/rspec.yml)\n![MIT License](https://img.shields.io/github/license/konifar/localizable-strings-checker)\n\nlocalizable-strings-checker is a GitHub Action to lint and validate localization files, ensuring consistency across different languages in your project.\n\n## Overview\n\nThis tool checks Localizable.strings files for the following issues.\n\n### 1. Consistency in keys comparing to base language\n\nIn the case that the keys which are only present in the base language file.\n\n```Localizable.strings\n/* en.lproj/Localizable.strings (base language) */\n\"strings_one\" = \"first strings\";\n\"strings_two\" = \"second strings\";\n```\n\n```Localizable.strings\n/* ja.lproj/Localizable.strings */\n\"strings_one\" = \"1つめの文字列\";\n```\n\nDetailed message is output if error is found.\n\n```sh\n    ...\n    Checking for key consistency...\n      Keys match: false\n      🚨 The following keys are only present in the base language file:\n        - strings_two\n```\n\n### 2. Consistency in comments comparing to base language\n\nIn the case that the number of comments are different between base language and other language.\n\n```Localizable.strings\n/* en.lproj/Localizable.strings (base language) */\n\"strings_one\" = \"first strings\";\n/* extra comment */\n\"strings_two\" = \"second strings\";\n```\n\n```Localizable.strings\n/* ja.lproj/Localizable.strings */\n\"strings_one\" = \"1つめの文字列\";\n\"strings_two\" = \"2つめの文字列\";\n```\n\nDetailed message is output if error is found.\n\n```sh\n    ...\n    Checking for comment consistency...\n      Comments match: false\n      🚨 The following comments are only present in the base language file:\n        - strings_two\n```\n\n### 3. Consistency in replacement strings comparing to base language\n\nIn the case that the number of replacement strings are different between base language and other language.\n\n```Localizable.strings\n/* en.lproj/Localizable.strings (base language) */\n\"replacable_string\" = \"%1$@ and %2$@\";\n```\n\n```Localizable.strings\n/* ja.lproj/Localizable.strings */\n\"replacable_string\" = \"%1$@\";\n```\n\nDetailed message is output if error is found.\n\n```sh\n    ...\n    Checking for the presence of replacement and newline characters...\n      🚨 The following keys do not contain the replacement characters:\n        - 'replacable_string' does not contain [\"%2$@\"]\n```\n\n### 4. Existence of improper single '%' characters\n\nIn the case that the single '%' character exists in Localizable.strings file. '%%' should be used instead of '%'.\n\n```Localizable.strings\n/* en.lproj/Localizable.strings (base language) */\n\"strings_one\" = \"100%\";\n```\n\nDetailed message is output if error is found.\n\n```sh\n    ...\n    Checking if single '%' characters exist...\n      🚨 The following keys contain a single % character:\n        - 'strings_one' contains a single % character\n```\n\n## Usage\n\nThis works on GitHub Actions like below.\n\n```yml\n# .github/workflows/lint-localizable-strings.yml\nname: Lint Localizable.strings\n\non:\n  pull_request:\n    branches:\n      - main\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n\n      - name: Run Lint Action\n        uses: konifar/localizable-strings-checker@v1\n        with:\n          # Project root path to check Localizable.strings. Default is current directory.\n          # project-root-path: \"./\"\n          # Base language code to check other language files like 'ja', 'en', prefix of xx.lproj\n          base-lang-code: \"ja\"\n```\n\n## Contribution\n\nContributions are welcome. Please report bugs or suggest features via Issues. Pull requests are also appreciated.\n\n### Setup\n1. Clone this repository\n\n```sh\ngit clone https://github.com/konifar/localizable-strings-checker.git\ncd localizable-strings-checker\n```\n\n2. Install the required gems\n```sh\nbundle install\n```\n\n3. Run command to the example project\n\n```sh\nruby ./localizable_strings_checker.rb example ja\n```\n\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonifar%2Flocalizable-strings-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonifar%2Flocalizable-strings-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonifar%2Flocalizable-strings-checker/lists"}