![]() ![]() English is commonly used but not as the preferred medium for certain types of engagements, ones our client is looking to cultivate. The website will mainly cater to users in Southeast Asia where many people are bi- and trilingual. We are moving platforms from Squarespace to Webflow, which is perfect except for the ability to localise. We are building a site for a client who wanted low maintenance and no code. I raised this issue to your support team but without luck. But there is one really really big mistake with the language codes. Everything’s really fine and works great. ![]() Just see that you posted a message on another post: Language switching Button/Link that works - #8 by Chardot Here copied the same response I made on that post. And I know it is hard to change, but is it possible for Weglot to add the code “tc” soon? I am not sure about other languages, but Chinese is really a special case. I know Weglot is following the ISO stuff, but I guess it was established too long ago. It is more appropriate to use “tc” for Traditional Chinese. This is the biggest hindrance to me at this moment. It is seriously wrong in Hong Kong and China, no proper corporate client could bear this mistake to put “tw” on the URL for Traditional Chinese. (zh stands for Chinese, not distinguishing simplified or traditional Chinese, nor Country) Anyway, it’s fine.īut, Traditional Chinese is definitely not “tw”… “tw” stands for Taiwan. It’s not very wrong to use zh for Simplified Chinese, but it is more correct to use “sc”. I hope it a lot for your tips, especially from a weglot did some basic testing. I know it sounds like I’m selling something, but I’m not! I’m just a regular Webflow user who had the same problem for more than a year trying to add multi-language support to my site, have also tried Localize.js without success, and now I’m happy that WeGlot got me out of the weeds. There’s also a more complex setup where, by adding some CNAME values, you can also get a subdomain for each of the languages the site is translated to. Once you’re browsing a translated page, just click on any links and it will take you to the corresponding translated page. By default, it will automatically translate the text for each page, but you can also add manual translations for a perfect result. You just need to put a Javascript snippet in Custom Code under Project Settings and it will add a language selector at the bottom right corner of the viewport, which you can later customize with CSS. Thanks a million I had the same problem and recently came across WeGlot, which does exactly what you want: Translate a Webflow website - Weglot So, I started this new post to better address the issue.Įveryone, Webflow team, … Any hint to handle language switching links so that changing site language will stay on the same content? A bit urgent. I came across this problem before and found this post, but no one was responding. (2) When people visiting /contact-us.html and would like to view it in Japanese, they click the 日本語 link and will go to /jp/contact-us.html but not jump to /jp/index.html. (1) Put the language switch links on every page (as “Symbols”): ENG / 中文 / 日本語 / French The English site is located at root, and pages of other languages are put inside folders. My site’s primary language is English, and will have other languages like Chinese, Japanese and French. Is there an easy way to add language switching button or links that can stay on the same content but not jumping to home of another language? by javascript or else? You can then call the helper in a view like this, passing in some context: var languages = LanguageHelper.Webflow does not support multi-lang and so we will have to do it in a rather manual way. ![]() Return ("RootCultures", () => (x => x.Value).ToList()) Private static IEnumerable GetRootCultures(IPublishedContent currentPage, AppCaches caches) String url = currentPage.Url(pageMatch.Culture) Var pageMatch = pageCultures.FirstOrDefault(c => c.Culture = root.Culture) Var rootCultures = GetRootCultures(home, caches) Public static List GetCurrentLanguageList(IPublishedContent currentPage, string currentCulture, AppCaches caches) If there is a parallel page using same culture then this is used, otherwise it falls back to the root URL. / Generates the list of languages for the page dropdown. Then a helper class to perform the mapping: public static class LanguageHelper It's a bit complex but hope you can gain something from the raw code:įirst I have a custom class to hold the values: public class CultureUrl I've created a Helper class to create a map of the current page and then all the language variants for it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |