{"id":22878041,"url":"https://github.com/workwithafridi/swifttranslationgenerator","last_synced_at":"2026-05-01T06:31:37.340Z","repository":{"id":266227575,"uuid":"897753020","full_name":"WorkWithAfridi/SwiftTranslationGenerator","owner":"WorkWithAfridi","description":"TranslationGenerator is a Swift-based utility for generating and converting localization files for iOS applications, ie: Json to Localizable.string and Localizable.string to Json.","archived":false,"fork":false,"pushed_at":"2024-12-03T08:26:12.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T14:18:31.175Z","etag":null,"topics":["json","localizable","swift","translation"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WorkWithAfridi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-12-03T07:15:29.000Z","updated_at":"2024-12-03T08:26:28.000Z","dependencies_parsed_at":"2024-12-03T08:35:11.302Z","dependency_job_id":null,"html_url":"https://github.com/WorkWithAfridi/SwiftTranslationGenerator","commit_stats":null,"previous_names":["workwithafridi/swifttranslationgenerator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WorkWithAfridi%2FSwiftTranslationGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WorkWithAfridi%2FSwiftTranslationGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WorkWithAfridi%2FSwiftTranslationGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WorkWithAfridi%2FSwiftTranslationGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WorkWithAfridi","download_url":"https://codeload.github.com/WorkWithAfridi/SwiftTranslationGenerator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246481005,"owners_count":20784458,"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":["json","localizable","swift","translation"],"created_at":"2024-12-13T16:17:40.032Z","updated_at":"2026-05-01T06:31:37.311Z","avatar_url":"https://github.com/WorkWithAfridi.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  TranslationGenerator\nTranslationGenerator is a Swift-based utility for generating and converting localization files for iOS applications, ie: Json to Localizable.string and Localizable.string to Json. It automates the process of converting language-specific JSON files into Localizable.strings format and vice versa, and organizes them into .lproj directories, making it easier to manage multilingual support in your app.\n\n## Features\n- Converts JSON translation files (e.g., en.json, es.json) into Localizable.strings.\n- Converts Localizable.strings files back to JSON format for easier management and collaboration.\n- Automatically creates language-specific .lproj folders (e.g., en.lproj, es.lproj).\n- Simplifies localization workflow for iOS projects.\n- Easy to use and configurable.\n\n## How to Use\n1. Clone the Repository\ngit clone https://github.com/your-username/TranslationGenerator.git\ncd TranslationGenerator\n\n3. Add Translation Files\nPlace your JSON_translation or Localizable.string files inside the json_to_localized/json_input or localized_to_json/localized_input folder. \n\n4. Run the Script\nUsing Terminal: Run the script directly:\nswift main.swift\n\nUsing Xcode:\nOpen the project in Xcode.\nEdit the scheme to set the correct working directory to the project root.\nRun the project.\n\n4. Check the Output\nThe script will generate language-specific .lproj folders (e.g., en.lproj, es.lproj)/ en.json in the designated output folders, ie: json_to_localized/localizable_output or localized_to_json/json_output. \n\n## Customizing the Script\nInput Folder: Update the jsonInputPath / localizedInputPath variable in the script to point to a custom folder.\nOutput Folder: Update the localizedOutputPath / jsonOutputPath variable to specify where the .lproj folders should be created.\n\n## Contributions\nContributions are welcome! Feel free to open an issue or submit a pull request to enhance the script.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkwithafridi%2Fswifttranslationgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkwithafridi%2Fswifttranslationgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkwithafridi%2Fswifttranslationgenerator/lists"}