Hey folks, we recently shipped some initial code to make it possible to translate Forem... And if anyone wants to contribute, they are welcome.
I ...
For further actions, you may consider blocking this person and/or reporting abuse
This is awesome. Tell me, will there be support for international url articles and tags?
I believe some or all of this flexibility has already been implemented.
#γγΉγγΏγ°
(I created that test tag just to see for myself π€ͺ)
I think Russian url should transliterate to forem.dev/varhal/patterny-dizayna-...
I create test post, but url not supported russian language:
@ben
Do you plan to fix this? ty
I think this is the same problem described here - any non ascii characters (including all Russian words) are omitted when generating url slugs for posts.
A few suggestions were using punycode (via the addressable library, replacing non-ascii text with an encoded representation) or using the unicode escapes to produce ascii urls, the way wikipedia does, with a url like ru.wikipedia.org/wiki/%D0%97%D0%B0... which displays fine in the browser but could seem a little ungainly when written in ascii.
@djuber The slug exists for SEO reasons. Going by this table, I'm not sure Punycode would help achieve that goal:
@ben @varhal According to the URI spec, URIs can only contain 7-bit ASCII characters. The application strips all non-ASCII characters to avoid %-encoding them as bytes, which would make the URL 2-4x as long and impossible to read, while (from what I can tell) also not contributing to SEO.
As @varhal mentioned elsewhere in this thread, transliteration to Roman characters is a good idea. We might be able to achieve that through this library.
I support this idea. I hope the developers will listen to it π. @ben what do you think about it?
@varhal Can you check out this PR?
Yes, that's what I need.. thanks
Looking forward to the Chinese version
ζεΎ δΈζηζ¬
This is great. I'd be happy to help with Spanish.
Thanks a lot for the offer! We're currently at a stage where we want to get English and French right before we start adding more languages but Spanish is definitely one of the languages we're interested in supporting sooner rather than later.