This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html | |
type THexBase = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"; | |
type THexLower = "a" | "b" | "c" | "d" | "e" | "f"; | |
type THexUpper = "A" | "B" | "C" | "D" | "E" | "F"; | |
/** | |
* Includes 1 & 2 character hex strings. | |
* | |
* @example "0", "00", ..., "f", "ff", ..., "F", "FF" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<b> | |
Steps: | |
</b> | |
<ol> | |
<li>Use google sheets to get the translations for each language.</li> | |
<li>Copy the results and paste them in the <b>translations</b> object variable</li> | |
<li>Create a template object based on your translated words (see <b>template_obj</b> variable)</li> | |
<li>Run this JSFiddle</li> | |
<li>If not copied, copy the output and paste in a .JSON file</li> |