Internationalisation and automatic translation
The following post 23 languages, one I can check showed up on my feed. The author talks about using gettext for internationalisation (i18n) and how they used an LLM to translate into 23 languages other than English, with only one of those 23 (German) being one the author could personally check. If you look into translation engines, such as gettext which the author is using, and ICU message format, you will find that there are a lot of differences between languages and dealing with these differences is tough. A particularly thorny problem is choosing the correct form of a sentence depending on the number of some noun. In English, we have it pretty easy, it’s usually one for 1, and another for all other numbers. If zero is possible, that’s often a special case as well, but it’s also usually special cased in the actual functionality as well. For example, suppose you have a webstore, on a past order, you may have a button that allows the user to add all the items from that order to the current cart. In English there will be three cases ...