willianrod / ODeck

A free and open-source alternative to StreamDeck
https://odeck.app
MIT License
399 stars 24 forks source link

Simplified Chinese version #56

Open songzhe2001 opened 9 months ago

songzhe2001 commented 9 months ago

I want to translate it into simplified Chinese but I don't know how to edit the code. If you guys want to release a Chinese version, I'd like to help you translate the texts.

VagnerSilva commented 5 months ago

@songzhe2001

In src/renderer/i18n/locales

Copy and paste the folder "en-US"

Rename the folder you just created to "zh-CN"

Inside the folder you just renamed, you will find several files with the extension "json" Simply translate each of them

Go back to the directory src/renderer/i18n/locales

change index.ts to

import en from './en-US';
import pt from './pt-BR';
import es from './es-ES';
import cn from './zh-CN';

const resources = {
  en,
  pt,
  es,
  cn,
};

export default resources;