Giter Site home page Giter Site logo

Comments (8)

tvvocold avatar tvvocold commented on June 5, 2024

@wwebfor @wwwredfish

from static-laverna.

wwebfor avatar wwebfor commented on June 5, 2024

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.

tvvocold avatar tvvocold commented on June 5, 2024

@wwebfor

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.

wwebfor avatar wwebfor commented on June 5, 2024

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.

tvvocold avatar tvvocold commented on June 5, 2024

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.

wwebfor avatar wwebfor commented on June 5, 2024

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.

asalthobaity avatar asalthobaity commented on June 5, 2024

Please commit the ar locale into the static version.

from static-laverna.

wwebfor avatar wwebfor commented on June 5, 2024

The locales were updated.

from static-laverna.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.