Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libreservice/my_opencc
Convert between Simplified and Traditional Chinese.
https://github.com/libreservice/my_opencc
naive-ui opencc pwa saas vue wasm
Last synced: about 2 months ago
JSON representation
Convert between Simplified and Traditional Chinese.
- Host: GitHub
- URL: https://github.com/libreservice/my_opencc
- Owner: LibreService
- License: agpl-3.0
- Created: 2022-12-15T16:45:29.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T01:29:15.000Z (5 months ago)
- Last Synced: 2024-09-19T02:27:10.869Z (3 months ago)
- Topics: naive-ui, opencc, pwa, saas, vue, wasm
- Language: TypeScript
- Homepage: https://my-opencc.vercel.app/
- Size: 57.6 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My OpenCC
![](https://img.shields.io/github/license/LibreService/my_opencc)Convert between Simplified and Traditional Chinese.
https://my-opencc.vercel.app/
This is a **STATIC** website so you **DON'T** need to own a server to host it.
All computation is performed in browser, thanks to Web Assembly.
It's also a [PWA](https://web.dev/progressive-web-apps/), so you can install it like a native App and use it **OFFLINE**.
## Transform matrix
源\目标|s|t|tw|hk|jp
-|-|-|-|-|-
s|-|s2t|s2tw(p)|s2hk|-
t|t2s|-|t2tw|t2hk|t2jp
tw|tw2s(p)|tw2t|-|-|-
hk|hk2s|hk2t|-|-|-
jp|-|jp2t|-|-|-## Self host
Download latest [artifact](https://github.com/LibreService/my_opencc/releases/download/latest/my-opencc-dist.zip) built by GitHub Actions.## Development workflow
My OpenCC can be built on Linux and macOS.For Windows, you may use WSL.
### Install node
You may use [nvm](https://github.com/nvm-sh/nvm) to install node.
### Install pnpm and dev dependencies
```sh
npm i -g pnpm
pnpm i
```
### Install emsdk
https://emscripten.org/docs/getting_started/downloads.html
### Get submodule
```sh
git submodule init
git submodule update
```
### Build wasm
```sh
pnpm run native
pnpm run lib
pnpm run wasm
```
### Run develop server
```sh
pnpm run dev
```
### Lint
```sh
pnpm run lint:fix
```
### Check type
```sh
pnpm run check
```
### Build
```sh
pnpm run build
```
### Test
```sh
pnpm run test
```
### Preview
```sh
pnpm run preview
```
### Deploy
```sh
export LIBRESERVICE_CDN=https://cdn.jsdelivr.net/npm/@libreservice/my-opencc@VERSION/dist/ # optional
vercel build --prod
vercel deploy --prebuilt --prod
```## License
AGPLv3+