Go to file
omame 8f6f3632ca Merge pull request 'Fixed i18n substitutions of "[links]".' (#6) from windowsboy111/website-wip:master into master
Reviewed-on: https://git.omame.tech/CyberOS/website-wip/pulls/6
2021-06-14 13:43:23 +00:00
.github/workflows Add ESLint to GitHub Actions 2021-05-22 15:50:57 +02:00
public Add info box 2021-05-22 18:57:34 +02:00
src Merge pull request 'Fixed i18n substitutions of "[links]".' (#6) from windowsboy111/website-wip:master into master 2021-06-14 13:43:23 +00:00
.babel-plugin-macrosrc.js initial commit 2021-05-09 03:52:53 +02:00
.babelrc initial commit 2021-05-09 03:52:53 +02:00
.eslintrc.js initial commit 2021-05-09 03:52:53 +02:00
.gitignore initial commit 2021-05-09 03:52:53 +02:00
.prettierrc prettier config 2021-05-22 16:02:26 +02:00
CONTRIBUTING.md docs fix + CONTRIBUTING.md 2021-05-23 12:39:56 +02:00
LICENSE Change license to GPL 3.0 2021-05-22 13:21:03 +02:00
README.md fixed README 2021-06-14 16:42:22 +08:00
package.json footer edit + dark mode in cookie 2021-05-28 20:41:50 +02:00
tailwind.config.js Merge branch 'master' of server.omame.tech:windowsboy111/website-wip 2021-05-28 16:17:33 +08:00
tsconfig.json initial commit 2021-05-09 03:52:53 +02:00
types.d.ts initial commit 2021-05-09 03:52:53 +02:00
webpack.config.js Add info box 2021-05-22 18:57:34 +02:00
yarn.lock mainly fixed footer and more i18n customisations 2021-06-14 16:39:45 +08:00

README.md

CyberOS Website

Currently a work-in-progress. You can help by submitting a pull request!

Developing:

To preview the website, run:

yarn
yarn start

Translating:

Note: We uses ISO 639-3 codes

  1. to i18n.ts in src/components, add your language alphabetically in the form of:
'en-US': {
    translation: en,
},
  1. import the translation file at the top of i18n.ts: (don't forget to sort them alphabetically!)
import en from './translations/en-US.json'
  1. copy a fully translated language file (en-US.json will work best) to <your-language-code>.json in src/components/translations/

  2. Start translating!