![]() ![]() I have no idea how to add the third language, say “Japanese”, and making 2 or a total of 3 language options links or list inside a div for language switching. I know it’s simpler if I place the pages of landing language to a folder, but it is not an option for client.Īnother problem… my site will have 3 languages finally. I tried to play around with, but not able to figure it out… ![]() When switching from “Chinese” homepage to “English”, the script will output /en/ but not /en/home. $(".lang").prop("href", ploc.replace("/", "/en/")) Īs the pages of my landing language (which is “Chinese / 中文” in my case) are located at the root folder. ( For the language switching button, I just create a text link and give it the class. Set your project's language code Go to your project's Settings and click on the General tab Scroll down to the Localization section Type in your 2-letter code under Language code Press Save changes Publish your site Open your project's Settings. Hi, I modified the code so that it works on my case… except home page ! I just started to learn JS so if you know a better way to do this please let me know. Oِne downside that I had to duplicate the main home page to point to /en version and added an auto direct JS in the page itself Then I added an empty nav link with class “lang”. I viewed some of the posts about localization and couldn’t find what I was looking for.Īfter some googling I managed to do it with the following: So, I created two versions of the site using folders but I was looking for a way to have a language switcher to just change the slug from “en” to “ar” in the url. ![]() I needed to create a website in two languages English and Arabic. I’m new to webflow and so far it’s awesome ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |