{"id":18664583,"url":"https://github.com/electerm/electerm-locales","last_synced_at":"2025-03-31T08:09:55.912Z","repository":{"id":29241474,"uuid":"116925592","full_name":"electerm/electerm-locales","owner":"electerm","description":"Multi language files for electerm","archived":false,"fork":false,"pushed_at":"2024-09-13T06:22:29.000Z","size":2373,"stargazers_count":24,"open_issues_count":3,"forks_count":80,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T06:33:46.033Z","etag":null,"topics":["electerm","language"],"latest_commit_sha":null,"homepage":"https://electerm.html5beta.com","language":"JavaScript","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/electerm.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":"2018-01-10T07:48:25.000Z","updated_at":"2024-09-13T06:22:33.000Z","dependencies_parsed_at":"2023-09-24T02:07:00.915Z","dependency_job_id":"8e87f170-98ee-481e-b4a4-97a8ca7f348d","html_url":"https://github.com/electerm/electerm-locales","commit_stats":{"total_commits":244,"total_committers":15,"mean_commits":"16.266666666666666","dds":"0.061475409836065587","last_synced_commit":"c2a8f094fd73b0a79285cb526c7ecd972c1f7a46"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerm%2Felecterm-locales","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerm%2Felecterm-locales/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerm%2Felecterm-locales/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerm%2Felecterm-locales/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electerm","download_url":"https://codeload.github.com/electerm/electerm-locales/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246436393,"owners_count":20776995,"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":["electerm","language"],"created_at":"2024-11-07T08:24:10.172Z","updated_at":"2025-03-31T08:09:55.875Z","avatar_url":"https://github.com/electerm.png","language":"JavaScript","readme":"# electerm-locales\n\n[![Build Status](https://travis-ci.org/electerm/electerm-locales.svg?branch=release)](https://travis-ci.org/electerm/electerm-locales)\n\n[electerm](https://electerm.html5beta.com) multi-language support pack.\n\n🇺🇸 🇨🇳 🇧🇷 🇷🇺 🇪🇸 🇫🇷 🇹🇷 🇭🇰 🇯🇵 🇸🇦 🇩🇪 🇰🇷\n\n## Dev\n\n```bash\ngit clone git://github.com/electerm/electerm-locales.git\ncd electerm-locales\nnpm i\ncp config.sample.js config.js\nnpm start\n# automatic sync locales/* to ../electerm/node_modules/electerm-locales/locales/ for test\n# and add pre-push hook, do lint and test before every push\n```\n\n## Test\n\n```bash\nnpm run test\n# test only make sure all locale file keys and orders are match.\n```\n\n## Contribute\n\nJust use `locales/en_us.js` as a example, fork this repo, add your edit, then submit a pull request.\n\nMake sure you run `npm run test` before push.\n\n## Script to create a new language file\n\nTo make the work easier, I have created a script to help creating a language file, it uses AI API translate API to translate all entry and create a new language file.\n\n```bash\n# get apiKey from deepseek.com\n# lang={language code} apiKey={apiKey} node bin/create-new-lang.js\n# then it will create a {language code}_{language code}.js in locales folder\n\n# for example:\n# this will create a German language file `locales/de_de.js`\nlang=de apiKey=xxxx node bin/create-new-language-file-with-ai.js\n# then you can review and edit to make sure every entry is right\n```\n\n## Add a new entry using AI api\n\nYou can certainly translate it one by one, I also provide a script to do it.\n\n```bash\n# entry=\"{level one entry name}\" name=\"{the prop name}\" text=\"{the text in original language}\" apiKey={apiKey} node bin/translate-with-ai.js\n\n# example:\nentry=setting name=saveTerminalLogToFile text=\"save terminal log to file\" node bin/translate-with-ai.js\n\n# then it will add saveTerminalLogToFile entry to all language file in setting namespace with google translate\n\n## remove a entry from all files\nentry=setting name=disableSshHistory node bin/remove-slot.js\n\n```\n\n## Use proxy\n\n```bash\ncp sample.env .env\n# then edit .env, add socks proxy\n```\n\n## Supported languages \u0026 creators\n\n- 🇺🇸 [English](locales/en_us.js): [@zxdong262](https://github.com/zxdong262)\n- 🇨🇳 [简体中文](locales/zh_cn.js): [@zxdong262](https://github.com/zxdong262)\n- 🇧🇷 [Português do Brasil](locales/pt_br.js): [@Meirinaldo Júnior](https://github.com/meirinaldojunior)\n- 🇷🇺 [русский](locales/ru_ru.js): [@Vasiliy](https://github.com/TheLetslook)\n- 🇪🇸 [Español](locales/es_es.js): Federico Pereira \u003cfpereira@cnsoluciones.com\u003e\n- 🇫🇷 [Français](locales/fr_fr.js): [@Damien Mosse](https://github.com/damosse31)\n- 🇹🇷 [Türkçe](locales/tr_tr.js): [@Nazım Gediz Aydındoğmuş](https://github.com/gediz)\n- 🇭🇰 [繁体中文](locales/zh_tw.js): [@ycku](https://github.com/ycku)\n- 🇯🇵 [日本語](locales/ja_jp.js): [@hououinkami](https://github.com/hououinkami)\n- 🇸🇦 [العربية](locales/ar_ar.js): [@haithamalnaeb](https://github.com/haithamalnaeb)\n- 🇩🇪 [german](locales/de_de.js): [@Hope-IT-Works](https://github.com/Hope-IT-Works)\n- 🇰🇷 [한국어](locales/ko_kr.js): [@jooy2](https://github.com/jooy2)\n- 🇮🇩 [Bahasa Indonesia](locales/id_id.js): [@hazekezia](https://github.com/hazekezia)\n\n## Contributors\n\n[https://github.com/electerm/electerm-locales/graphs/contributors](https://github.com/electerm/electerm-locales/graphs/contributors)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felecterm%2Felecterm-locales","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felecterm%2Felecterm-locales","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felecterm%2Felecterm-locales/lists"}