Hashes a string using SHA1.
(str)
| 27 | |
| 28 | /** Hashes a string using SHA1. */ |
| 29 | function hash(str) { |
| 30 | return crypto.createHash('sha1').update(str, 'utf8').digest('hex'); |
| 31 | } |
| 32 | |
| 33 | /** Dynamically imports a .ts file by converting it to a temporary .mjs file. */ |
| 34 | async function loadLocaleModule(locale) { |