# yarn
yarn
# npm
npm install
# pnpm
pnpm install
# bun
bun install
# yarn
yarn dev
# npm
npm run dev
# pnpm
pnpm dev
# bun
bun run dev
# yarn
yarn build
# npm
npm run build
# pnpm
pnpm build
# bun
bun run build
- Create a JSON file for the new language:
- Navigate to the
src/i18n/directory. - Create a new JSON file for the language you want to add. You can use an existing JSON file as a template.
- Navigate to the
// For example, if you're adding Espanõl, you might create a `es.json` file.- Import the new language file:
- Open the
src/i18n/languages.tsfile. - Import the JSON file you just created.
- Open the
// For example:
// import espanol from './es.json';- Add the imported file to the
languagesconstant:- In the
languages.tsfile, add the imported file to thelanguagesconstant.
- In the
// For example:
// const languages = {
// ...en,
// ...fr,
// ...es,
// };I see, thank you for the clarification. Here's the revised version of the instructions:
- Create a JSON file for the new theme:
- Navigate to the
src/themes/directory. - Create a new JSON file for the theme you want to add. You can use an existing JSON file as a template.
- Navigate to the
// For example, if you're adding a lemon theme, you might create a `lemon.json` file.- Import the new theme file:
- Open the
src/themes/mythemes.tsfile. - Import the JSON file you just created.
- Open the
// For example:
// import lemon from './lemon.json';- Add the imported file to the
themesobject within themyThemesconstant:- In the
mythemes.tsfile, add the imported file to thethemesobject that is within themyThemesconstant.
- In the
// For example:
// const myThemes = {
// defaultTheme: 'default',
// themes: {
// ...defaultTheme,
// ...wastelandTheme,
// ...vampberryTheme,
// ...lemon,
// },
// };