Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.05 KB

File metadata and controls

49 lines (40 loc) · 1.05 KB

How to prepare TasmoCompiler web interface translation

  1. copy src/locales/en.json file to <your_language_code>.json (for example create it.json file to create Italian translation)
  2. translate english text to your language:
before:
...
"stepWifiConfDesc": "Enter SSID and password for your WiFi network",
...
after:
...
"stepWifiConfDesc": "YOUR TRANSLATION GOES HERE",
...
  1. edit src/locales/language.js file and add your language
before:
import localeEN from '../locales/en.json';
import localeES from '../locales/es.json';
import localePL from '../locales/pl.json';

export const allMessages = {
  en: localeEN,
  es: localeES,
  pl: localePL,
};
after:
import localeEN from '../locales/en.json';
import localeES from '../locales/es.json';
import localePL from '../locales/pl.json';
import localeIT from '../locales/it.json'; // add this line 

export const allMessages = {
  en: localeEN,
  es: localeES,
  pl: localePL,
  it: localeIT, // add this line
};