kdtype icon indicating copy to clipboard operation
kdtype copied to clipboard

Language switching / Translations

Open hybridherbst opened this issue 3 years ago • 5 comments

For kids that don't speak English but still want to type and read little words 🙂

Ideas:

  • "classic" - /de, /en etc as routes
  • "let the browser do the work" - texts in HTML and make sure translation buttons work (no idea if this is technically even possible)
  • "bring your own" - ?words= or to pull in custom data without coding

Personally I like both the routes (for something built-in) and bring-your-own - e.g. could put in a personalized list of kids names in a kindergarten group to type these

hybridherbst avatar Jul 10 '22 07:07 hybridherbst

"bring your own" - ?words= or to pull in custom data without coding

I do not think that this would be a good idea for a game aimed at kids. Can be easily abused by adding inappropriate words.

Ponjimon avatar Jul 10 '22 11:07 Ponjimon

Good point, even when I would certainly hope that kids at the age this is aimed at are under parental supervision.

hybridherbst avatar Jul 10 '22 11:07 hybridherbst

Fancy, seems there's actually already a profanity filter in place:

  • https://github.com/steveruizok/kdtype/blob/0f44412d61b4b1d653f88c5879035a4c41eab2c3/src/game/utils.ts#L31

hybridherbst avatar Jul 10 '22 12:07 hybridherbst

I like it! For internationalization, we would need to

  1. collect words from the target language
  2. either connect a profanity filter for that language or verify that the word list is profanity-free
  3. set up internationalization using something like react-intl, which we use on tldraw

Our best bet for words lists may be to look at wordle clones, given the popularity of that app.

steveruizok avatar Jul 11 '22 18:07 steveruizok

Here's one for german that looks reasonable, after looking at a number that just seemed to have random letter combinations or arcane old german words I have never heard of... http://www.sobiki.de/3buchstaben.html. Love that it goes all the way to 37-letter words, german is quite a language 😁

hybridherbst avatar Jul 11 '22 19:07 hybridherbst