No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. D0KT0P
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Groups 0

    D0KT0P

    @D0KT0P

    0
    Reputation
    139
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    D0KT0P Follow

    Latest posts made by D0KT0P

    • Error with router path (sourceFiles) in quasar.conf.js
      // quasar.conf.js
      module.exports = function (ctx) {
        return {    
          sourceFiles: {
            router: 'src/services/router',  // default  - src/router - OK
            //...
      

      > quasar dev
      
       Dev mode.......... spa
       Pkg quasar........ v1.0.0-beta.5
       Pkg @quasar/app... v1.0.0-beta.9
       Debugging......... enabled
      
       app:quasar-conf Reading quasar.conf.js +0ms
       app:dev Checking listening address availability (0.0.0.0:8080)... +0ms
      (node:6752) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: EISDIR: illegal operation on a directory, read
      (node:6752) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      
      posted in CLI
      D0KT0P
      D0KT0P
    • Quasar i18n

      I’m trying to set the user’s language (assume from local storage) to ‘he’.
      I do this in the plugin ‘boot’ like this:

      // src/plugins/boot.js
      
      import Quasar from 'quasar'
      
      export default ({ app, Vue }) => {
      	let language = 'he' //LocalStorage.get.item('language')
         	import(`quasar-framework/i18n/${language}`).then(lang => {
                Quasar.i18n.set(lang.default)
              })
        	new Vue(app) 
      }
      

      After loading the page, the language $ q.i18n is set correctly (‘he’),
      but the html tags lang and dir are set to ‘en-us’ and ‘ltr’.

      <html lang="en-us" dir="ltr">...</html>
      

      If the language is switched directly to the page via <select>, then everything works correctly.

      Am I doing something wrong?

      posted in Framework
      D0KT0P
      D0KT0P