{"id":18795098,"url":"https://github.com/daisuke-t-jp/strgen","last_synced_at":"2026-04-25T12:32:45.934Z","repository":{"id":55930699,"uuid":"273261105","full_name":"daisuke-t-jp/strgen","owner":"daisuke-t-jp","description":"The generate tool of iOS / Android localized strings.","archived":false,"fork":false,"pushed_at":"2020-12-06T12:52:42.000Z","size":238,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-05T15:27:15.160Z","etag":null,"topics":["android","android-strings","ios","ios-localization","localization","localization-tool","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/strgen/","language":"Python","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/daisuke-t-jp.png","metadata":{"files":{"readme":"README.ja.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":"2020-06-18T14:32:32.000Z","updated_at":"2021-07-06T08:40:29.000Z","dependencies_parsed_at":"2022-08-15T09:40:50.763Z","dependency_job_id":null,"html_url":"https://github.com/daisuke-t-jp/strgen","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/daisuke-t-jp/strgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2Fstrgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2Fstrgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2Fstrgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2Fstrgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daisuke-t-jp","download_url":"https://codeload.github.com/daisuke-t-jp/strgen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2Fstrgen/sbom","scorecard":{"id":317300,"data":{"date":"2025-08-11","repo":{"name":"github.com/daisuke-t-jp/strgen","commit":"6fbc125b88d56974d69e9192cc352648da60f72a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T00:30:37.437Z","repository_id":55930699,"created_at":"2025-08-18T00:30:37.437Z","updated_at":"2025-08-18T00:30:37.437Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32262801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["android","android-strings","ios","ios-localization","localization","localization-tool","python"],"created_at":"2024-11-07T21:32:34.095Z","updated_at":"2026-04-25T12:32:45.874Z","avatar_url":"https://github.com/daisuke-t-jp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[English](https://github.com/daisuke-t-jp/strgen/blob/master/README.md)\n\n# strgen\n\n## 概要\n\n\u003cimg src=\"https://raw.githubusercontent.com/daisuke-t-jp/strgen/master/images/strgen.png\" width=\"700px\"\u003e\n\n**strgen** は Android / iOS の多言語ファイルを CSV ファイルから作成できます。\n\n\n## インストール\n\nhttps://pypi.org/project/strgen/\n\n`pip` を使ってインストールできます。\n\n```sh\n$ pip install strgen\n```\n\n\n## 使い方\n\n### 1. 入力用のファイルを準備します。\n\n入力用ファイルの準備。\n\n#### CSV ファイル\n\n多言語ファイルのソースファイルです。\n\n- [フォーマット](#CSVフォーマット)\n- [サンプル](https://github.com/daisuke-t-jp/strgen/blob/master/sample/source.csv)\n\n\n#### YAML ファイル\n\n設定ファイルです。\n\n- [フォーマット](#YAMLフォーマット)\n- [サンプル](https://github.com/daisuke-t-jp/strgen/blob/master/sample/strgen.yml)\n\n\n\n### 2. `strgen` を実行\n\n```sh\n$ strgen --config strgen.yml\n```\n\nYAML ファイルを引数にして、実行します。  \nもし、指定がない場合、カレントディレクトリにある `strgen.yml` を使用することになります。\n\n以下のファイルが `build` フォルダ以下に生成されます。\n\n- build/\n    - apple/\n        - LocalizableStrings.swift\n        - lproj/\n            - en.lproj/Localizable.strings\n            - ja-JP.lproj/Localizable.strings\n            - ...\n    - google/\n        - values-en/strings.xml\n        - values-ja-JP/strings.xml\n        - ...\n\n`apple` フォルダ(iOS/macOS 用)の中には、 キーが列挙された `LocalizableStrings.swift` も生成されます。\n\n```swift\nimport Foundation\n\nclass LocalizableStrings {\n\n    enum Key: String {\n        case yes\n        case no\n        case cancel\n        case next\n        case close\n        case escape_test\n        case parameter_google\n        case parameter_apple\n    }\n\n}\n\n```\n\n\n## サンプル\n\n簡単に試せるサンプルがあります。\n\n[サンプル](https://github.com/daisuke-t-jp/strgen/tree/master/sample)\n\n1. `strgen` をインストールします。\n    ```sh\n    $ pip install strgen\n    ```\n1. プロジェクトを clone します。\n    ```sh\n    $ git clone https://github.com/daisuke-t-jp/strgen\n    ```\n1. カレントディレクトリを `strgen/sample` フォルダに変更します。\n1. 以下のコマンドを実行。\n    ```sh\n    $ strgen --config strgen.yml\n    ```\n1. `build` フォルダを確認します。\n\n\n\n## 入力ファイルフォーマット\n\n### CSVフォーマット\n\n| id | en | ja-JP | zh-Hans | zh-Hant | ... |\n| ---- | ---- | ---- | ---- | ---- | ---- |\n| hello_world | Hello world | こんにちは世界 | 你好，世界 | 你好，世界 | ... |\n| yes | Yes | はい | 是 | 是 | ... |\n| no | No | いいえ | 没有 | 沒有 | ... |\n| cancel | Cancel | キャンセル | 取消 | 取消 | ... |\n| next | Next | キャンセル | 下一个 | 下一個 | ... |\n| close | Next | キャンセル | 下一个 | 下一個 | ... |\n| escape_test | escape \u003c'\"\"\u0026?@\u003e test | | | | | ... |\n| parameter_google | Parameter %1$s, %2$s. | | | | | ... |\n| parameter_apple | Parameter %1$@, %2$@. | | | | | ... |\n\n\n#### ヘッダ\n\nヘッダ行は `id` で開始します。  \n次に、言語（言語と国コード）を追加します。\n\n\n#### ボディ\n\n`id` の文字列が iOS / Android 参照用のキーになります。  \n各言語のローカライズされた文字列を入力します。\n\nローカライズ文字列を未入力にすることもできます。  \nその場合は、その言語に対してのローカライズ文字列は生成されません。\n\n\n### YAMLフォーマット\n\n`strgen.yml`\n\n```yml\ngeneral:\n  input_file_path: ./source.csv\n  output_path: ./\ngoogle:\n  enabled: true\n  strings_file_name: strings.xml\napple:\n  enabled: true\n  strings_file_name: Localizable.strings\n  swift_file_name: LocalizableStrings.swift\n  swift_class_name: LocalizableStrings\n```\n\n#### `general`\n\n##### `input_file_path` (必須)\n\n入力用 CSV ファイルのパス。\n\n##### `output_path` (任意)\n\n出力先パス。  \nデフォルトは、YAML ファイルと同じディレクトリになります。\n\n\n#### `google`\n\n##### `enabled` (任意)\n\n出力ファイルを生成するかどうかのフラグ。  \nデフォルトは `true` です。\n\n##### `strings_file_name` (任意)\n\n生成された多言語ファイルの名前。  \nデフォルトは `strings.xml` です。\n\n\n#### `apple`\n\n##### `enabled` (任意)\n\n出力ファイルを生成するかどうかのフラグ。  \nデフォルトは `true` です。\n\n##### `strings_file_name` (任意)\n\n生成された多言語ファイルの名前。  \nデフォルトは `Localizable.strings` です。\n\n##### `swift_file_name` (任意)\n\n生成された Swift ファイルの名前。  \nデフォルトは `LocalizableStrings.swift` です。\n\n##### `swift_class_name` (任意)\n\n生成された Swift クラス名。  \nデフォルトは `LocalizableStrings` です。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaisuke-t-jp%2Fstrgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaisuke-t-jp%2Fstrgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaisuke-t-jp%2Fstrgen/lists"}