async function createI18n (locale) {
  const { default: localemessages } = await import(`./lang/${locale}.json`)
  const messages = {
    [locale]: localemessages
  }

  const i18n = new VueI18n({
    locale: locale,
    fallbackLocale: locale,
    messages
  })

  return i18n
}
/**
 * creates and loads a localization.
 *
 * @export
 * @param {string} locale
 * @returns a promise with the instance of vuei18n
 */
creates and loads a localization.
@export
@param {string} locale
@returns a promise with the instance of vuei18n
creates and loads a localization . @export @param { string } locale @returns a promise with the instance of vuei18n
async function createI18n (locale) {
  const { default: localemessages } = await import(`./lang/${locale}.json`)
  const messages = {
    [locale]: localemessages
  }
  const i18n = new VueI18n({
    locale: locale,
    fallbackLocale: locale,
    messages
  })
  return i18n
}
async function createI18n ( locale ) { const { default : localemessages } = await import ( ` ${ locale } ` ) const messages = { [ locale ] : localemessages } const i18n = new VueI18n ( { locale : locale , fallbackLocale : locale , messages } ) return i18n }
creates and loads a localization.
creates and loads a localization .