Poll WIP (#231):

* frontend message localization
This commit is contained in:
John Livingston
2024-07-04 17:39:40 +02:00
parent 3c45c2d1e6
commit 6f7c5c50f7
8 changed files with 49 additions and 5 deletions

View File

@ -17,6 +17,10 @@ const locContent: Map<string, string> = new Map<string, string>()
* - We are using keys to identify strings
* - the `loc` function gets the english segment for the key
* - the build-languages.js script builds all needed files.
*
* The loc function is also used to customize some labels on Prosody backend.
* The front-end will then replace english strings by their translation.
* (see mod_muc_poll for example).
* @param key The key to translate
*/
function loc (key: string): string {