I am confused. I have been clicking around on the page for a few minutes and I have not yet encountered one example where the text is actually being localized, just examples in English.
I'd like to see an example on the first page on how would I add a translation for a language that requires different wording for numbers 2 to 5 for example.
> I have not yet encountered one example where the text is actually being localized, just examples in English.
Haha, yeah, our website is not localized itself. It may sound funny, but we believe our target audience at this stage of the project development is pretty much English-speaking, so we didn't invest in localization of it :)
> I'd like to see an example on the first page on how would I add a translation for a language that requires different wording for numbers 2 to 5 for example.
Polish is an example of such language.
An example of a plural variant selector with it would be:
This is a "smart selector". By default, since the selector is a number we guessed that it should be run via plural selector and then matches against result category list (hence one,few,many)
But on top of that we also experience a common use case where the UX wants to add a special form of the sentence for particular values - usually for 0, like this:
The project definitely seems interesting to me. What is the current project guidance? A Swift version would be quite useful and I might be interested in contributing.
For 1.0 we're aiming at JavaScript, Rust and Python. But if you look at the issues people are talking about Java, C#, Kotlin etc. ports so Swift sounds like a good candidate as well! It all comes down to use cases.
We're currently finalizing 0.7 release which we hope will be the last one including syntax changes (very, very minor - mostly white space relaxation and normalization), and it will allow us to stabilize our EBNF and parser/serializers which, in turn, will make it easier for ports to be written.
I'd like to see an example on the first page on how would I add a translation for a language that requires different wording for numbers 2 to 5 for example.
Also, why [0] and then [one] ?