xicri / genshin-dictionary

An online English-Chinese-Japanese dictionary for the terms of Genshin Impact
https://genshin-dictionary.com
Apache License 2.0
33 stars 7 forks source link
genshin genshin-impact genshinimpact

Genshin Dictionary

Genshin Dictionary (Japanese: 原神英語・中国語辞典) is an online English-Chinese-Japanese dictionary containing the terms in Genshin Impact.

Want to add or modify translations?

This repository only contains the Web UI for Genshin Dictionary and the translation dataset is in genshin-langdata repository. If you want to contribute this project by adding new words or fixing wrong translations, this repository is not the one you are looking for.

Development

Genshin Dictionary is a website based on Nuxt 3. You may need experience in (or need to learn) following technology stack to contribute this project:

Requirements

Setup

$ cd /path/to/genshin-dictionary
$ npm ci
$ npm run dev

Then open http://localhost:3000/ to view your local Genshin Dictionary.

Test & Lint

$ npm test
$ npm run lint

npm test runs E2E tests by Playwright. If you use Linux, you need to install system dependencies. On Ubuntu and Ubuntu-based distributions, you can install dependencies automatically with following command:

$ sudo npx playwright install-deps

Update translation dataset

Translation dataset is fetched after npm install or npm ci. To update it, run npm ci again.