Thanks for understanding that English is used as a shared language in this repository. Maintainers do not use machine translation to avoid miscommunication due to error in translation. If description of issue / PR are written in non-English languages, those may be closed.
It is of course fine to use non-English language, when you open a PR to translate documents and communicates with other users in same language.
-
The
mainbranch is the latest stable version release. All development should be done in dedicated branches. -
Checkout a topic branch from the relevant branch, e.g.
main, and merge back against that branch. -
Work in the
srcfolder and DO NOT checkindistin the commits. -
If adding new feature:
- Add accompanying test case.
- Provide convincing reason to add this feature. Ideally you should open a suggestion issue first and have it greenlighted before working on it.
-
If fixing a bug:
- Provide detailed description of the bug in the PR. Live demo preferred.
- Add appropriate test coverage if applicable.
-
It's OK to have multiple small commits as you work on the PR - we will let GitHub automatically squash it before merging.
-
Make sure
pnpm testpasses. (see development setup)
- Fork the repository from intlify/bridging !
- Create your topic branch from
main:git branch my-new-topic origin/main - Add codes and pass tests !
- Commit your changes:
git commit -am 'Add some topic' - Push to the branch:
git push origin my-new-topic - Submit a pull request to
mainbranch ofintlify/bridgingrepository !
You will need Node.js version 14.16+, and PNPM.
After cloning the repo, run:
$ pnpm i # install the dependencies of the projectA high level overview of tools used:
- TypeScript as the development language
- Vite for bundling
- Vitest for testing
- ESLint for code linting
- Prettier for code formatting
The test script calls the following npm scripts:
test:i18n9:unit: unit test@intlify/vue-i18n-bridgeon vue-i18n v9test:i18n8:unit: unit test@intlify/vue-i18n-bridgeon vue-i18n v8test:router4:unit: unit test@intlify/vue-router-bridgeon vue-router v4test:router3:unit: unit test@intlify/vue-router-bridgeon vue-router v3
This repository employs a monorepo setup which hosts a number of associated packages under the packages directory:
vue-i18n-bridge: Vue I18n bridging for Vue 2 & Vue 3vue-router-bridge: Vue Router bridging for Vue 2 & Vue 3
Unit tests are collocated with directories named test on examples/**/. Consult the Vitest docs and existing test cases for how to write new test specs.
As a pure community-driven project without major corporate backing, we also welcome financial contributions via GitHub Sponsors
Funds donated via GitHub Sponsors and Patreon go to support kazuya kawaguchi full-time work on Intlify.
Thank you to all the people who have already contributed to Intlify project and my OSS work !