{"id":26140920,"url":"https://github.com/undecaf/vue-material-locales","last_synced_at":"2026-04-25T08:35:12.125Z","repository":{"id":57168944,"uuid":"294657227","full_name":"undecaf/vue-material-locales","owner":"undecaf","description":"Locales for the Vue Material datepicker","archived":false,"fork":false,"pushed_at":"2023-07-24T17:35:20.000Z","size":1630,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T13:47:23.955Z","etag":null,"topics":["datepicker","i18n","locale","vue","vuematerial"],"latest_commit_sha":null,"homepage":"","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/undecaf.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":"2020-09-11T09:53:00.000Z","updated_at":"2023-07-24T17:26:30.000Z","dependencies_parsed_at":"2022-09-13T05:22:39.989Z","dependency_job_id":null,"html_url":"https://github.com/undecaf/vue-material-locales","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/undecaf%2Fvue-material-locales","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/undecaf%2Fvue-material-locales/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/undecaf%2Fvue-material-locales/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/undecaf%2Fvue-material-locales/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/undecaf","download_url":"https://codeload.github.com/undecaf/vue-material-locales/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242961706,"owners_count":20213316,"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":["datepicker","i18n","locale","vue","vuematerial"],"created_at":"2025-03-11T02:58:24.542Z","updated_at":"2026-04-25T08:35:12.096Z","avatar_url":"https://github.com/undecaf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Locales for the Vue Material datepicker\n\n![Minified size](https://badgen.net/bundlephobia/min/@undecaf/vue-material-locales)\n![Open issues](https://badgen.net/github/open-issues/undecaf/vue-material-locales)\n![Vulnerabilities](https://snyk.io/test/npm/@undecaf/vue-material-locales/badge.svg)\n![Total downloads](https://badgen.net/npm/dt/@undecaf/vue-material-locales)\n![License](https://badgen.net/github/license/undecaf/vue-material-locales)\n\n\nThis package provides ~75\u0026nbsp;locales for the [Vue Material datepicker](https://vuematerial.io/components/datepicker),\ni.e. day and month names, date formats and button text (all the properties that are required for\n[`Vue.material.locale`](https://vuematerial.io/configuration)).\n\nAll locales combined comprise about 50\u0026nbsp;kB, ~700\u0026nbsp;bytes/locale. Locales can be\ninstalled individually or all together.\n\nA simple online example [is available here](https://undecaf.github.io/vue-material-locales/example/)\n([example source code](https://github.com/undecaf/vue-material-locales/blob/master/src/components/Demo.vue)).\n\n\n## Installation as ES6 modules\n\n```shell script\n$ npm install @undecaf/vue-material-locales\n    or\n$ yarn add @undecaf/vue-material-locales\n```\n\nRegistering individual locales:\n\n```javascript 1.8\nimport VueMaterialLocales from '@undecaf/vue-material-locales'\nimport en from '@undecaf/vue-material-locales/dist/locale/en-US'\nimport de from '@undecaf/vue-material-locales/dist/locale/de'\n    ...\n// This must come after Vue.use(VueMaterial):\nVue.use(VueMaterialLocales, [ en, de ])\n```\n\nRegistering all available locales:\n\n```javascript 1.8\nimport VueMaterialLocales from '@undecaf/vue-material-locales'\nimport locales from '@undecaf/vue-material-locales/dist/locale'\n    ...\n// This must come after Vue.use(VueMaterial):\nVue.use(VueMaterialLocales, locales)\n```\n\n\n## Installation as `\u003cscript\u003e`\n\nRegistering individual locales:\n\n```html\n\u003c!-- After the Vue and Vue Material scripts --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@undecaf/vue-material-locales/dist/index.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@undecaf/vue-material-locales/dist/locale/en-US/index.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@undecaf/vue-material-locales/dist/locale/de/index.js\"\u003e\u003c/script\u003e\n```\n\nRegistering all available locales:\n\n```html\n\u003c!-- After the Vue and Vue Material scripts --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@undecaf/vue-material-locales/dist/index.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@undecaf/vue-material-locales/dist/locale/index.js\"\u003e\u003c/script\u003e\n```\n\n\n## Selecting a locale\n\n```javascript 1.8\n// Assuming that 'en-US' and 'de' have been registered\nvm.$material.selectLocale('de')\nvm.$material.selectLocale('en-US')\n```\n\n`selectLocale()` returns the language tag that was actually selected, or `undefined` if no suitable\nlocale could be found.\n\nLanguage tags are treated case-insensitively, and both `'-'` and `'_'` are valid subtag separators.\n\nIf the requested locale is not available, a more specific locale is considered first, \nand then a more general one. The search is carried out in registration order: \n\n```javascript 1.8\n// Assuming that 'en-US' and 'de' have been registered\nvm.$material.selectLocale('de-DE')  // -\u003e 'de', locale set\nvm.$material.selectLocale('en')     // -\u003e 'en-US', locale set\nvm.$material.selectLocale('en-AU')  // searches 'en-AU', then 'en' -\u003e 'en-US', locale set\nvm.$material.selectLocale('it')     // -\u003e undefined, locale unchanged\n```\n\nFallback locales can be given as additional arguments:\n\n```javascript 1.8\n// Assuming that 'en-US' and 'de' have been registered\nvm.$material.selectLocale('de-AT', 'en')  // -\u003e 'de', locale set\nvm.$material.selectLocale('it', 'de-DE')  // -\u003e 'de', locale set\nvm.$material.selectLocale('it', 'en')     // -\u003e 'en-US', locale set\nvm.$material.selectLocale('jp', 'it')     // -\u003e undefined, locale unchanged\n```\n\n\n## List of registered locales\n\nObject `vm.$material.locales` contains registered locales by language tag:\n\n```javascript 1.8\n{\n    de:      { tag: 'de',    /* ... Vue.material.locale properties for German     */ },\n    'en-US': { tag: 'en-US', /* ... Vue.material.locale properties for US English */ },\n    ...\n}\n```\n\n\n## Credits\n\nDate/time formats are based on the locales of the marvelous [date-fns](https://www.npmjs.com/package/date-fns)!\n\n\n## License\n\nSoftware: [MIT](http://opensource.org/licenses/MIT)\n\nDocumentation: [CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fundecaf%2Fvue-material-locales","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fundecaf%2Fvue-material-locales","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fundecaf%2Fvue-material-locales/lists"}