1.0.31 • Published 2 years ago

i18n-messages-generator v1.0.31

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

i18n-messages-generator

npm npm

Generate i18n messages from lang folder

Install

yarn add i18n-messages-generator

Or

npm install i18n-messages-generator

How to use it

Alt text

import getMessages from 'i18n-messages-generator';
const messages = getMessages(require.context('./lang', true, /(.js){0,1}(.ts){0,1}$/i))

const i18n = VueI18n.createI18n({
  locale: 'fr', // set locale
  fallbackLocale: 'en', // set fallback locale
  messages, // set locale messages
  // If you need to specify other options, you can set other options
  // ...
})
1.0.31

2 years ago

1.0.3

2 years ago

1.0.21

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago