{"id":21835765,"url":"https://github.com/vtex/intl-container","last_synced_at":"2025-04-14T09:20:32.102Z","repository":{"id":27468394,"uuid":"114041884","full_name":"vtex/intl-container","owner":"vtex","description":"A React component for loading i18n translations and intl locale data","archived":false,"fork":false,"pushed_at":"2023-07-18T20:58:02.000Z","size":1012,"stargazers_count":3,"open_issues_count":11,"forks_count":2,"subscribers_count":109,"default_branch":"master","last_synced_at":"2025-03-27T22:42:40.865Z","etag":null,"topics":["srv-checkout-ui","xp-shopping"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/vtex.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-12-12T21:39:21.000Z","updated_at":"2021-12-13T18:39:01.000Z","dependencies_parsed_at":"2024-11-27T20:25:29.122Z","dependency_job_id":"88f5ca14-30be-4160-8fde-81b5b955d9c7","html_url":"https://github.com/vtex/intl-container","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex%2Fintl-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex%2Fintl-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex%2Fintl-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex%2Fintl-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vtex","download_url":"https://codeload.github.com/vtex/intl-container/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852186,"owners_count":21171843,"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":["srv-checkout-ui","xp-shopping"],"created_at":"2024-11-27T20:24:29.892Z","updated_at":"2025-04-14T09:20:32.079Z","avatar_url":"https://github.com/vtex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# intl-container\n\n\u003e A React component for loading i18n translations and intl locale data\n\n## Example\n\n```js\nimport React, { Component } from \"react\";\nimport Page from \"./Page\";\nimport createIntlContainer from \"intl-container\";\n\nconst IntlContainer = createIntlContainer({\n  importIntl: () =\u003e import(\"intl\"),\n  importIntlLocale: locale =\u003e import(\"intl/locale-data/\" + locale),\n  importReactIntl: locale =\u003e import(\"react-intl/locale-data/\" + locale),\n  importCountryCodes: locale =\u003e\n    import(\"i18n-iso-countries/langs/\" + locale + \".json\"),\n  importTranslation: locale =\u003e import(\"./i18n/\" + locale)\n});\n\nexport default class App extends Component {\n  render() {\n    return (\n      \u003cIntlContainer locale={this.props.locale}\u003e\n        \u003cPage /\u003e\n      \u003c/IntlContainer\u003e\n    );\n  }\n}\n```\n\n## Props\n\n* **locale:** The locale to be loaded.\n* **loader:** An element to use as loader. (Default: `\u003cdiv/\u003e`)\n* **children:** Root component that needs to translate strings.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtex%2Fintl-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvtex%2Fintl-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtex%2Fintl-container/lists"}