Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Can't change language

    Windy API v4
    2
    6
    1047
    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.
    • D
      delta5 last edited by

      Hi,

      I'm trying to change language to Frech for api v4 but i always get the default language of the browser instead.
      is there a specific list of language code ?

      1 Reply Last reply Reply Quote 1
      • D
        delta5 last edited by

        I'm was trying to change language to French like this:

        ..
        const options = {
        ..
        lang: 'fr',
        ..
        }
        ..

        1 Reply Last reply Reply Quote 0
        • marekd
          marekd Administrator last edited by

          Hi, did you try W.store.set('lang', 'fr')?

          marekd 1 Reply Last reply Reply Quote 2
          • marekd
            marekd Administrator @marekd last edited by

            You can find more at https://api4.windy.com/examples/parameters/

            1 Reply Last reply Reply Quote 1
            • D
              delta5 last edited by

              @marekd said in Can't change language:

              W.store.set('lang', 'fr')

              That works, thanks )

              1 Reply Last reply Reply Quote 0
              • D
                delta5 last edited by

                But first, i had to remove the parameter: lang: 'fr', into const options = {...}

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
                NodeBB & contributors, OSM & contributors, HERE maps
                Terms of Use     Privacy Policy