{"id":21365964,"url":"https://github.com/seanghay/locale-parser","last_synced_at":"2026-04-14T01:31:16.118Z","repository":{"id":41904619,"uuid":"350562489","full_name":"seanghay/locale-parser","owner":"seanghay","description":"Parse simple text as an Android XML Resource files powered by Vue.js, Vite.js and WindiCSS","archived":false,"fork":false,"pushed_at":"2022-04-23T10:03:37.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T20:11:17.816Z","etag":null,"topics":["android","android-localization","vitejs","vue","windicss"],"latest_commit_sha":null,"homepage":"https://locale-parser.netlify.app/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seanghay.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}},"created_at":"2021-03-23T03:03:11.000Z","updated_at":"2023-06-11T03:39:25.000Z","dependencies_parsed_at":"2022-08-11T20:50:11.248Z","dependency_job_id":null,"html_url":"https://github.com/seanghay/locale-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Flocale-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Flocale-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Flocale-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Flocale-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanghay","download_url":"https://codeload.github.com/seanghay/locale-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243663592,"owners_count":20327306,"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":["android","android-localization","vitejs","vue","windicss"],"created_at":"2024-11-22T07:13:18.587Z","updated_at":"2026-04-14T01:31:16.065Z","avatar_url":"https://github.com/seanghay.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Locale Parser\n\nParse simple text as an Android XML Resource files powered by Vue.js, Vite.js and WindiCSS\n\n### Basic Usage\n\nThis will generated each folder corresponding to the locale.\n\n\n```\nlocale: Content\nlocale2: Content2\nlocale3: Content3\n```\n\nOutput:\n\n`locale`\n\n```xml\n\u003cstring name=\"\"\u003eContent\u003c/string\u003e\n```\n---\n`locale2`\n\n```xml\n\u003cstring name=\"\"\u003eContent2\u003c/string\u003e\n```\n---\n`locale3`\n\n```xml\n\u003cstring name=\"\"\u003eContent3\u003c/string\u003e\n```\n---\n\n### Headers\n\nKeep our resource string tidy by specifying a header.\n\n```\nMainActivity\n\nlocale: Content\nlocale2: Content2\nlocale3: Content3\n```\n\nOutput: \n\n`locale`\n\n```xml\n\u003c!-- [MainActivity] --\u003e\n\u003cstring name=\"\"\u003eContent\u003c/string\u003e\n```\n\n`locale2`\n\n```xml\n\u003c!-- [MainActivity] --\u003e\n\u003cstring name=\"\"\u003eContent2\u003c/string\u003e\n```\n\n\n`locale3`\n\n```xml\n\u003c!-- [MainActivity] --\u003e\n\u003cstring name=\"\"\u003eContent3\u003c/string\u003e\n```\n\n\n### Resource Name\n\nIf you need to specify `name` for each item, you can use `#hashtag`. The hashtag can be placed anywhere in the header.\n\n```\nMainActivity #title_content_main\n\nlocale: Content\nlocale2: Content2\nlocale3: Content3\n```\n\nOutput: \n\n`locale`\n\n```xml\n\u003c!-- [MainActivity] --\u003e\n\u003cstring name=\"title_content_main\"\u003eContent\u003c/string\u003e\n```\n\n`locale2`\n\n```xml\n\u003c!-- [MainActivity] --\u003e\n\u003cstring name=\"title_content_main\"\u003eContent2\u003c/string\u003e\n```\n\n\n`locale3`\n\n```xml\n\u003c!-- [MainActivity] --\u003e\n\u003cstring name=\"title_content_main\"\u003eContent3\u003c/string\u003e\n```\n\n---\n\n### Specify Output Files\n\nIn some cases, you might need to have different file name rather than `strings.xml`.\n\nYou can do that by using `@file` directive followed by the desired filename.\n\n```\n@file: my_file_name\n\nen: English\nkm: ខ្មែរ\n```\n\nResult:\n\n```\n├── values\n│   └── my_file_name.xml\n└── values-km\n    └── my_file_name.xml\n\n2 directories, 2 files\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanghay%2Flocale-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanghay%2Flocale-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanghay%2Flocale-parser/lists"}