Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Language

Exposes and initializes the language object.

Index

References

Variables

Functions

References

Language

Renames and re-exports _language

Variables

Const lang

lang: null | string = localStorage.getItem("lang")

Functions

Const setLanguage

  • setLanguage(languageCode: string): void
  • Changes Miratope's language.

    Example

    // Sets language to English.
    setLanguage("en");
    
    // "triangle"
    console.log(Build.regularPolygon(3).getName());
    
    // Sets language to Spanish.
    setLanguage("es");
    
    // "triángulo"
    console.log(Build.regularPolygon(3).getName());

    Parameters

    • languageCode: string

      The code of the new language.

    Returns void

Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM