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

    Datetime Localization

    Help
    3
    7
    3129
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jclemgruber last edited by

      How do i localize a quasar-datetime component?

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Will write up a tutorial on i18n. But I need to change something in Quasar too. You’ll see months and days will be in english whatever you do. This will be fixed. Anyway, until then, in app.js import moment and set its locale before Quasar.start(): moment.locale('de') (for german as example).

        1 Reply Last reply Reply Quote 0
        • J
          jclemgruber last edited by

          Unfortunately weekdaysShort was not translated. I’ll be waiting for this fix. By the way, is there any issues using this component in large views? The “set” and “cancel” buttons doesn’t appear. On Quasar Play works great.

          Thanks for your support and sorry my poor english.
          0_1475191799381_datetime-component.png

          1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin last edited by

            When using popovers, which is on desktop, those buttons are not supposed to show. Because there’s no need for them. User can simply close the popover, and anyway the binded value changes as you make clicks on the datetime component (so no “set” button is required).
            Anyway, will make an important update to this component very soon.

            Thanks for using the forum to post this!

            1 Reply Last reply Reply Quote 0
            • M
              mariaczi last edited by

              Is this update made or coming soon?

              1 Reply Last reply Reply Quote 0
              • rstoenescu
                rstoenescu Admin last edited by rstoenescu

                Yes, it’s in v0.8+

                1 Reply Last reply Reply Quote 0
                • rstoenescu
                  rstoenescu Admin last edited by

                  http://quasar-framework.org/guide/app-troubleshoot-and-tips.html#Configuring-Momentjs-Localization

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post