{"id":13526271,"url":"https://github.com/s2mr/L10nLint","last_synced_at":"2025-04-01T07:31:49.040Z","repository":{"id":65732602,"uuid":"597957873","full_name":"s2mr/L10nLint","owner":"s2mr","description":"Lint tool for Localizable.strings","archived":false,"fork":false,"pushed_at":"2024-05-07T07:42:54.000Z","size":135,"stargazers_count":42,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T22:20:01.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/s2mr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-06T04:34:27.000Z","updated_at":"2024-05-22T15:38:48.000Z","dependencies_parsed_at":"2024-05-07T06:45:19.129Z","dependency_job_id":null,"html_url":"https://github.com/s2mr/L10nLint","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"14f4932410f6b3c83bd5f44ce4ce764eed9d66be"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s2mr%2FL10nLint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s2mr%2FL10nLint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s2mr%2FL10nLint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s2mr%2FL10nLint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s2mr","download_url":"https://codeload.github.com/s2mr/L10nLint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246600738,"owners_count":20803472,"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":[],"created_at":"2024-08-01T06:01:27.242Z","updated_at":"2025-04-01T07:31:48.638Z","avatar_url":"https://github.com/s2mr.png","language":"Swift","funding_links":[],"categories":["Libs"],"sub_categories":["Quality"],"readme":"# L10nLint\n\nLint tool for your Localizable.strings\n\n## Lint command\n\nLint based on your `.l10nlint.yml`:\n```\nl10nlint\n```\n\nWhen run with Xcode prebuild script, shows warning and errors.\n\n### Rules\n\n```\nduplicate_key     Duplicated key should be resolved.\nempty_key         Empty localized key should be resolved.\nempty_value       Empty localized value should be resolved.\nkey_order         Between Base and each language file's key should be same order.\nmark_syntax       Annotation should have around one space.\nmixed_chinese     The mixing of traditional and simplified chinese characters should be resolved.\nmulti_linefeed    Linefeed should be one.\nspace_in_key      Key should not have space.\ntodo              TODOs and FIXMEs should be resolved.\n```\n\n## Copy command\nThis is useful feature!✨\n\nCopy keys to each `strings` based on your `.l10nlint.yml`:\n```\nl10nlint copy [--delete-marker]\n```\n\nhttps://user-images.githubusercontent.com/19924081/217507201-b7933fed-09bb-4ba6-aed0-5bed50b19695.mov\n\nDefine markers in your `Base.lproj/Localizable.strings`\nSurround to copy content with `// @copy` and `// @end` keyword.\n`--delete-marker` option is delete marker in your `Base.lproj/Localizable.strings`\n\nIf above line on your marker is comment, detect equality line,\nif above line on your marker is key, detect equality key.\n\n```\n// MARK: Main\n\"MainKey\" = \"Main value\";\n// @copy\n\"SecondGen1\" = \"Second gen value 1\";\n\"SecondGen2\" = \"Second gen value 2\";\n// @end\n```\n\n## Installation\n\n### [Homebrew](https://brew.sh/)\n\n```shell\nbrew install s2mr/tap/l10nlint\n```\n\n### [Swift Package Manager](https://github.com/apple/swift-package-manager)\n\nAdd the following to the dependencies of your `Package.swift`:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/s2mr/L10nLint.git\", from: \"L10nLint version\"),\n]\n```\n\nRun command:\n\n```sh\nswift run -c release l10nlint [COMMAND] [OPTIONS]\n```\n\n### [Mint](https://github.com/yonaskolb/Mint)\n\nInstall with Mint by following command:\n\n```sh\nmint install s2mr/l10nlint\n```\n\nRun command:\n\n```sh\nmint run s2mr/l10nlint [COMMAND] [OPTIONS]\n```\n\n### Using a pre-built binary\n\nYou can also install l10nlint by downloading `l10nlint.zip` from the latest GitHub release.\n\n## Setup\nPlace `.l10nlint.yml` file at your repository root.\n`base_path` is directory path that is contains `Localizable.strings`\n\nExample:\n```.yml\nbase_path: YourApp/Resources/\n\ndisabled_rules:\n  - empty_value\n\ntodo:\n  is_summary_enabled: true\n  summary_violation_limit: 20\n```\n\n## Command completion\n\nThis command is built on [swift-argument-parser](https://github.com/apple/swift-argument-parser).\n\nPlease refer to [this article](https://github.com/apple/swift-argument-parser/blob/main/Sources/ArgumentParser/Documentation.docc/Articles/InstallingCompletionScripts.md).\n\nReplace `example` with `l10nlint`.\n\n## Help\n\n```\nl10nlint --help\n\n---\nOVERVIEW: Lint tool for your Localizable.strings\n\nUSAGE: l10nlint [--config \u003cconfig\u003e] \u003csubcommand\u003e\n\nOPTIONS:\n  --config \u003cconfig\u003e       Custom config file path\n  --version               Show the version.\n  -h, --help              Show help information.\n\nSUBCOMMANDS:\n  lint (default)          Lint your Localizable.strings\n  rules                   Show all rules whether enabled or disabled\n  copy                    Copy keys your Base Localizable.strings\n\n  See 'l10nlint help \u003csubcommand\u003e' for detailed help.\n```\n\n```\nl10nlint rules --help\n\n---\nOVERVIEW: Show all rules whether enabled or disabled\n\nUSAGE: l10nlint rules [--config \u003cconfig\u003e] [--print-parameters]\n\nOPTIONS:\n  --config \u003cconfig\u003e       Custom config file path\n  --print-parameters      Show your rule's parameters in config\n  -h, --help              Show help information.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs2mr%2FL10nLint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs2mr%2FL10nLint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs2mr%2FL10nLint/lists"}