{"id":24096430,"url":"https://github.com/t-osawa-009/jsontostring","last_synced_at":"2026-06-12T19:32:18.415Z","repository":{"id":82057880,"uuid":"267312104","full_name":"t-osawa-009/JSONToString","owner":"t-osawa-009","description":"Generate a string file from json. You can generate strings and xml from json","archived":false,"fork":false,"pushed_at":"2020-05-28T03:05:32.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-20T20:26:22.670Z","etag":null,"topics":["and","ios","locali","strin","swift","swiftpackagemanager"],"latest_commit_sha":null,"homepage":"","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/t-osawa-009.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2020-05-27T12:22:27.000Z","updated_at":"2020-05-28T03:01:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"41199fe7-8c96-405f-bab1-05c0d5b72ad1","html_url":"https://github.com/t-osawa-009/JSONToString","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/t-osawa-009/JSONToString","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-osawa-009%2FJSONToString","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-osawa-009%2FJSONToString/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-osawa-009%2FJSONToString/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-osawa-009%2FJSONToString/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t-osawa-009","download_url":"https://codeload.github.com/t-osawa-009/JSONToString/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-osawa-009%2FJSONToString/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34260309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["and","ios","locali","strin","swift","swiftpackagemanager"],"created_at":"2025-01-10T12:32:02.047Z","updated_at":"2026-06-12T19:32:18.391Z","avatar_url":"https://github.com/t-osawa-009.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSONToString\n\nGenerate a string file from json.\nYou can generate strings and xml from json\n\n## Installation\n### Makefile\n```sh\n$ git clone git@github.com:t-osawa-009/JSONToString.git\n$ cd JSONToString\n$ make install\n```\n\n### [Mint](https://github.com/yonaskolb/Mint)\n```sh\n$ brew install mint\n$ mint install t-osawa-009/JSONToString\n```\n\n## Usage\n1. Prepare the json that will be the original data of the string.\n```json\n#Strings.json\n[\n    {\n      \"key\": \"hoge\",\n      \"key_android\": \"hoge\",\n      \"key_ios\": \"hoge\",\n      \"value_android\": \"hoge\",\n      \"value_ios\": \"hoge\"\n    },\n]\n```\n\n2. Added `.JSONToString.yml` to set the generation method.\n\n```yml\noutputs:\n  - key: key\n    value_key: value_ios\n    output: Strings/Localizable.strings\n    format: strings\n    sort: asc\n  - key: key\n    value_key: value_android\n    output: Strings/strings.xml\n    format: xml\n```\n\n3. Execute the command.\n```sh\n$ JSONToString --json_path Strings.json\n```\n\n## Configuration\n- You can customize the way files are generated by setting the `.JSONToString.yml`.\n- `key` key\n- `value_key`　key value\n- `output` File generation path\n- `format` .strings or .xml\n- `sort` (optional) asc or desc\n```yml\noutputs:\n  - key: key\n    value_key: value_ios\n    output: Strings/Localizable.strings\n    format: strings\n    sort: asc\n  - key: key\n    value_key: value_android\n    output: Strings/strings.xml\n    format: xml\n```\n\n## Reference Resources\n- [Pairs Global iOSでのクールな多言語管理](https://medium.com/eureka-engineering/pairs-global-ios%E3%81%A7%E3%81%AE%E3%82%AF%E3%83%BC%E3%83%AB%E3%81%AA%E5%A4%9A%E8%A8%80%E8%AA%9E%E7%AE%A1%E7%90%86-b91010b063cb)\n\n## CONTRIBUTING\n- There's still a lot of work to do here. We would love to see you involved. You can find all the details on how to get started in the Contributing Guide.\n\n## License\nJSONToString is released under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft-osawa-009%2Fjsontostring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft-osawa-009%2Fjsontostring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft-osawa-009%2Fjsontostring/lists"}