Skip to content

Latest commit

 

History

History
73 lines (53 loc) · 2.44 KB

README.md

File metadata and controls

73 lines (53 loc) · 2.44 KB

This repo was built to show the steps in my Medium article "Translate Any Vue App in 1 Hour", and to host my custom language switching component. Feel free to use anything here in your personal or commercial projects.



Packages used

vue-i18n
vue-clickaway
vue-translation-manager

Additional items

I also recommends you use BabelEdit to manage translations (Available for Mac & Windows)
https://www.codeandweb.com/babeledit (Has a trial, and the paid option to get more automatic Google translation queries is incredibly reasonable)


VUE 3 Update:

For users of Vue 3, please use the gist below to setup your main.js file. Everything outside of main.js is exactly the same as Vue 2.

https://gist.github.com/titusdecali/4ec3cdd8e8ce54e5e65785001d44d6aa



Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.