1.0.12 • Published 1 year ago

nuxt-i18n-tc2sc v1.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

nuxt-i18n-tc2sc

A Nuxt.js module for automatically converting Traditional Chinese to Simplified Chinese.

Install

Prerequisites: Nuxt@^2, @nuxtjs/i18n@^7

Setup

  1. Add nuxt-i18n-tc2sc dependency to your project

  2. Config nuxt.config.js

export default{
    ...

    modules: [
        "@nuxtjs/i18n",
        "nuxt-i18n-tc2sc"
    ],

    i18n:{
        vueI18nLoader: true, //must be true
        locales: ['tc', 'sc'],
    }
    ...
}

Example

In some vue page

<i18n>
{
  "tc": {
    "hello": "你好嗎?"
  }
}
</i18n>

<template>
  <div>
    <h1>{{ $t('hello') }}</h1>
  </div>
</template>

It will be converted to "你好吗?" when locale is "sc"

1.0.11

1 year ago

1.0.10

1 year ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago