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

    Use functions in i18n

    Help
    2
    3
    101
    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.
    • S
      Sfinx last edited by

      When translating the complex sentences it will be good to have something like

      … src/i18n/en/index.js …

      complex: (arg1, arg2) => (‘xxx: ’ + arg1 + ’ yyy:’ + arg2)
      …

      … some.vue …
      <q-toolbar-title>{{ $t(‘complex’, arg1, arg2) }}</q-toolbar-title>
      …

      How it can be done if possible ?

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @Sfinx last edited by

        @Sfinx

        https://kazupon.github.io/vue-i18n/guide/formatting.html

        1 Reply Last reply Reply Quote 1
        • S
          Sfinx last edited by

          Wow, working 😉

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