All Projects โ†’ intlify โ†’ Vue Cli Plugin I18n

intlify / Vue Cli Plugin I18n

Licence: mit
๐ŸŒ Vue CLI plugin to add vue-i18n to your Vue Project

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Cli Plugin I18n

Vue Element Admin
๐ŸŽ‰ A magical vue admin https://panjiachen.github.io/vue-element-admin
Stars: โœญ 73,044 (+42367.44%)
Mutual labels:  vue-cli, i18n
Vite Plugin Vue I18n
๐ŸŒ Vite plugin for Vue I18n
Stars: โœญ 48 (-72.09%)
Mutual labels:  i18n, plugin
Androidlocalizeplugin
๐ŸŒ Android localization plugin. support multiple languages, no need to apply for key.
Stars: โœญ 352 (+104.65%)
Mutual labels:  i18n, plugin
Nx Admin
๐Ÿ‘ A magical ๐Ÿฎ โš” vue admin๏ผŒ่ฎฐๅพ—star
Stars: โœญ 2,497 (+1351.74%)
Mutual labels:  vue-cli, i18n
D2 Admin
An elegant dashboard
Stars: โœญ 11,012 (+6302.33%)
Mutual labels:  vue-cli, i18n
Vue Admin
ๅŸบไบŽand-design-vue็š„vueๅŽๅฐ็ฎก็†็ณป็ปŸๆจกๆฟ
Stars: โœญ 226 (+31.4%)
Mutual labels:  vue-cli, i18n
Ununiga
[์€๋Š”์ด๊ฐ€] ํ•œ๊ธ€ ์กฐ์‚ฌ(ๅŠฉ่ฉž) ๋Œ€์‘ I18n engine extension
Stars: โœญ 34 (-80.23%)
Mutual labels:  i18n, plugin
Vue I18n
๐ŸŒ Internationalization plugin for Vue.js
Stars: โœญ 6,502 (+3680.23%)
Mutual labels:  i18n, plugin
Vue2 Scaffold
The best scaffold for Vue 2.x based on vue-cli#vuejs-templates/webpack
Stars: โœญ 125 (-27.33%)
Mutual labels:  vue-cli, scaffold
Vue Cli Plugin P11n
๐Ÿ”Œ Vue CLI 3 plugin to pluginize your Vue project
Stars: โœญ 117 (-31.98%)
Mutual labels:  vue-cli, plugin
Vue Blog
๐ŸŽ‰ ๅŸบไบŽvueๅ…จๅฎถๆกถ + element-ui ๆž„ๅปบ็š„ไธ€ไธชๅŽๅฐ็ฎก็†้›†ๆˆ่งฃๅ†ณๆ–นๆกˆ
Stars: โœญ 208 (+20.93%)
Mutual labels:  vue-cli, i18n
Ibiu
Build Vue Spa Faster ๐Ÿ ๐Ÿ” ๐Ÿœ
Stars: โœญ 144 (-16.28%)
Mutual labels:  vue-cli, scaffold
Vue Admin Template
Sample Admin Template based on Vuejs & Vuetify.
Stars: โœญ 177 (+2.91%)
Mutual labels:  vue-cli, i18n
Vue Cli Plugin Browser Extension
Browser extension development plugin for vue-cli 3.0
Stars: โœญ 238 (+38.37%)
Mutual labels:  vue-cli, plugin
Vue I18next
Internationalization for vue using the i18next i18n ecosystem.
Stars: โœญ 172 (+0%)
Mutual labels:  i18n, plugin
Android Gradle Localization Plugin
Gradle plugin for generating localized string resources
Stars: โœญ 100 (-41.86%)
Mutual labels:  i18n, plugin
Vue Plugin Boilerplate
๐Ÿ”ฉ Boilerplate for Vue.js plugin
Stars: โœญ 143 (-16.86%)
Mutual labels:  vue-cli, plugin
Vue Cli Plugin Qiankun
๐Ÿš€ qiankun plugin for vue-cli
Stars: โœญ 151 (-12.21%)
Mutual labels:  vue-cli, plugin
Hydrogenapp
hydrogen is a pluggable android app
Stars: โœญ 166 (-3.49%)
Mutual labels:  plugin
Phaser State Transition
State transition plugin for Phaser.js
Stars: โœญ 169 (-1.74%)
Mutual labels:  plugin

๐ŸŒ vue-cli-plugin-i18n

npm npm Test vue-cli-plugin-i18n Dev Token

Vue CLI plugin to add vue-i18n to your Vue Project

โญ๏ธ Features

  • vue-i18n basic scaffolding
  • Locale messages in Single File components with vue-i18n-loader
  • Locale messages missing & unused reporting (experimental)
  • Env Variables

๐Ÿš€ Getting Started

If yon don't have a project created with Vue CLI:

vue create my-vue-app

Install the plugin into your project:

cd my-vue-app
vue add i18n

๐Ÿ”จ Injected Commands

  • vue-cli-service i18n:report (experimental)

    Report the missing locale message keys and unused keys.

NOTE: limitation vue-cli-service i18n:report cannot detect missing and unused keys from local messages of i18n custom blocks.

๐Ÿ“‹ Env variables

When vue-i18n code files had been scaffolded into your project, the following env variables generate into .env:

  • VUE_APP_I18N_LOCALE

    The locale of project localization, default en.

  • VUE_APP_I18N_FALLBACK_LOCALE

    The locale of project fallback localization, default en.

These env variables are read in src/i18n.(js|ts).

๐Ÿ”ง Configrations

vue-cli-plugin-i18n have some plugin options in vue.config.js:

module.exports = {
  pluginOptions: {
    i18n: {
      locale: 'ja',
      fallbackLocale: 'en',
      localeDir: 'locales',
      enableInSFC: false,
      enableLegacy: false
    }
  }
}

locale

  • Type: string

  • Default in prompt: en

    The locale of project localization.

fallbackLocale

  • Type: string

  • Default in prompt: en

    The fallback locale of project localization.

localeDir

  • Type: string

  • Default in prompt: locales

    The directory where store localization messages of project. The specified directory will start from the src directory.

enableInSFC

  • Type: boolean

  • Default in prompt: false

  • Support project Vue version: Vue 2 only

    Wheather enable locale messages in Single file components. Default No in propmpt, for Vue 2 and Vue I18n v8.x only.

enableLegacy

  • Type: boolean

  • Default in prompt: false

  • Support project Vue version: Vue 3 only

    Wheather use legacy mode API in Vue I18n. Default No in propmpt, for Vue 3 and Vue I18n v9 or later.

runtimeOnly

  • Type: boolean

  • Default(No Prompt): false

  • Support project Vue version: Vue 3 only

    Whether or not to use Vue I18n runtime-only, set in the vue-i18n field of webpack resolve.alias option. default Vue I18n (vue-i18n) package.json module field will be used. If true is specified, Vue I18n (vue-i18n) will use node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js.

    For more details, See here

compositionOnly

  • Type: boolean

  • Default(No Prompt): if enableLegacy set false, true else then false

  • Support project Vue version: Vue 3 only

    Whether to make vue-i18n's API only composition API. By default the legacy API is tree-shaken.

    For more details, See here

fullInstall

  • Type: boolean

  • Default(No Prompt): true

  • Support project Vue version: Vue 3 only

    Whether to install the full set of APIs, components, etc. provided by Vue I18n. By default, all of them will be installed.

    If false is specified, buld-in components and directive will not be installed in vue and will be tree-shaken.

    For more details, See here

๐Ÿ“œ Changelog

Details changes for each release are documented in the CHANGELOG.md.

โ—๏ธ Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

โœ… TODO

Managed with GitHub Projects

๐Ÿ’ช Contribution

Please make sure to read the Contributing Guide before making a pull request.

ยฉ๏ธ License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].