An easy way to build your own personal web resume! ๐ช
- Install NodeJS
-
Clone the repository
-
Install dependencies:
$ npm install
-
Build application:
$ npm run build
-
Run in dev mode:
$ npm run dev
You can easily customize the template and the languages! ๐
English: ./locales/en.json
Vietnamese ./locales/vi.json
-
Create a new language file in the folder
./locales
(eg. :vi.json
) -
Change i18n configuration in the nuxt.config.js,
i18n: { locales: ['en', 'vi'], defaultLocale: 'en', vueI18n: { fallbackLocale: 'en', messages: { en: require('./locales/en.json'), vi: require('./locales/vi.json'), } } }
-
You can easily change the actual language by following way:
<div> <nuxt-link class="btn btn-light" :to="switchLocalePath('en')">EN</nuxt-link> <nuxt-link class="btn btn-light" :to="switchLocalePath('vi')">VI</nuxt-link> </div>
-
In the root folder, run the following command:
$ npm run generate
-
All the generated code will be apear in the
./dist
folder.