{"id":16832701,"url":"https://github.com/zswang/h5i18n","last_synced_at":"2025-10-16T20:12:25.815Z","repository":{"id":57260031,"uuid":"88155863","full_name":"zswang/h5i18n","owner":"zswang","description":"A mobile page of internationalization development framework","archived":false,"fork":false,"pushed_at":"2017-11-13T07:13:49.000Z","size":142,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T04:15:31.081Z","etag":null,"topics":["i18n"],"latest_commit_sha":null,"homepage":null,"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/zswang.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":"2017-04-13T11:00:22.000Z","updated_at":"2020-12-09T11:38:23.000Z","dependencies_parsed_at":"2022-08-25T01:52:13.304Z","dependency_job_id":null,"html_url":"https://github.com/zswang/h5i18n","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fh5i18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fh5i18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fh5i18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fh5i18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zswang","download_url":"https://codeload.github.com/zswang/h5i18n/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248339226,"owners_count":21087215,"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":["i18n"],"created_at":"2024-10-13T11:50:07.136Z","updated_at":"2025-10-16T20:12:20.782Z","avatar_url":"https://github.com/zswang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"h5i18n\n-----------\n\n# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]\n\nA mobile page of internationalization development framework.\n\n## 使用方法\n\n### 创建多语言环境\n\n```js\nvar langs = new h5i18n.Languages('cn');\n\nlangs.update('en');\n```\n\n## API\n\n### 更新语言环境\n\n```js\n// function update (locale?: string)\nlangs.update('en');\n```\n\n### 获取文本\n\n```js\n// function get (text: string, locale?: string)\nlangs.get('中文\u003c!--{en}English--\u003e');\n```\n\n## License\n\nMIT © [zswang](http://weibo.com/zswang)\n\n[npm-url]: https://npmjs.org/package/h5i18n\n[npm-image]: https://badge.fury.io/js/h5i18n.svg\n[travis-url]: https://travis-ci.org/zswang/h5i18n\n[travis-image]: https://travis-ci.org/zswang/h5i18n.svg?branch=master\n[coverage-url]: https://coveralls.io/github/zswang/h5i18n?branch=master\n[coverage-image]: https://coveralls.io/repos/zswang/h5i18n/badge.svg?branch=master\u0026service=github","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fh5i18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzswang%2Fh5i18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fh5i18n/lists"}