Comments (8)
from static-laverna.
In order to set the default language, you need to open this file https://github.com/Laverna/laverna/blob/master/app/scripts/helpers/i18next.js#L29. But why do you need to set the default language when you can change language in the settings page?
from static-laverna.
But why do you need to set the default language when you can change language in the settings page?
Because the default setting page is lack of Chinese.(zh_cn) (Check it in https://laverna.cc/index.html#/settings or http://laverna.github.io/static-laverna/#/settings)
In order to set the default language, you need to open this file https://github.com/Laverna/laverna/blob/master/app/scripts/helpers/i18next.js#L29.
The i18next.js is Not exit in https://github.com/Laverna/static-laverna :)
from static-laverna.
You're right. For now, you can switch to another language by opening Developer console and executing:
localStorage.setItem('vimarkable.configs-appLang', JSON.stringify({name: 'appLang', value: 'zh_cn'}));
from static-laverna.
localStorage.setItem('vimarkable.configs-appLang', JSON.stringify({name: 'appLang', value: 'zh_cn'}));
<undefined
That's what i got in chrome console.
BTW, is there any way to change the lang with js?
from static-laverna.
It didn't take effect because right now zh_cn locale doesn't exist in the static version https://github.com/Laverna/static-laverna/tree/gh-pages/locales
from static-laverna.
Please commit the ar locale into the static version.
from static-laverna.
The locales were updated.
from static-laverna.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from static-laverna.