HyperScript 1.7.48
The docs can show their examples in French, Spanish, Portuguese or German, and scripts in those languages are read more carefully.
Added
- A language menu on the website. At the top right of every page, next to the switch for light and dark, a menu picks the language the docs show their examples in. With *Français*, every script example and every line of syntax in the reference is shown with French words, the way a server with
language: frenchtakes it:
quand joueur rejoint:
envoyer "&aWelcome, %joueur%!" au joueur
- A note at the top of the page says which language is shown, that not everything is translated and not every translation is correct, and has a button back to English.
- *Copy* copies what is shown. *Try it* opens the English, which is what the Playground reads.
- The choice is remembered for the next page and the next visit.
- The text of the docs itself stays English; only the code is shown differently.
Fixed
Scripts written in another language (language: in config.yml):
- English scripts are read as they are in every language. Before, a few English words were taken for words of the chosen language: with French,
send action bardid not load, andis not a playerwas misread. en:,de:and the other language codes undermessages:are left alone.- A name with hyphens such as
no-moneyinoptions:is left alone.boucle-joueuris stillloop-player, because every part of it is a word. - Spanish:
sinois *else*.si nois now *if not*, as it reads; it used to be *else*, which madesi no {x}:impossible to write. - German:
Fallis no longer *case*, sincefall distanceis English; writecase. - French:
actionis no longer *trigger*; writedéclencheur.