Next: Testing the library, Previous: Load translations, Up: Pure Scheme internationalization with po-lib [Contents][Index]
Hoot is a compiler from Scheme to WebAssembly. In order to process the
navigator.languages variable, the WebAssembly module where
po-lib is included will require the following imports:
document.navigatorLanguagesRefThis function takes no argument and returns an array of
strings. Presumably you will want to return
navigator.languages.
document.arrayLengthGiven an array as its sole argument, this function should return its length as a 32-bit integer.
document.stringArrayRefGiven an array languages and a 32-bit integer index i,
this function should return the string
languages[i].