Check out demo here
Check out our docs here
Vue.config.ignoredElements = [/uni-\w*/];
<script type="module" src="https://cdn.jsdelivr.net/npm/@uiwebkit/[email protected]/dist/flag/flag.esm.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@uiwebkit/[email protected]/dist/udk.esm.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@uiwebkit/[email protected]/dist/mat.esm.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@uiwebkit/[email protected]/dist/loc/loc.esm.js"></script>
Place Uni Language Menu into the header of your web app. Specify the path to the language list JSON file (ex. lang-menu.json) or backend API endpoint
<uni-router shadow></uni-router>
<uni-lang-menu-shadow mini round routing url="lang-menu.json"></uni-lang-menu-shadow>
<uni-translate><ContentComponent/></uni-translate>
<uni-translate>localized content</uni-translate>
<uni-translate>text and (( partially localized ))</uni-translate>
<uni-translate>
<a href="https://your_domain/(( localized ))">link</a>
</uni-translate>