Translation

This is the function that returns the text for all the components that use the translation feature.
Parameters:
Name Type Attributes Description
key string The key to access the JSON file
language "es" | "en" | "jp" Tha language that is required
index number <optional>
The position on the array where is the needed text
Returns:
The string stored on the given key
Example
const translation = translate("hello_world", "es", 0)

console.log("translation") // "Hola Mundo!"