Note this project uses a git submodule to manage translations. That repository is here
# init submodules when running for the first time
$ git submodule update --init --recursive
# run this when you need to update the submodule
$ git submodule update
If you have more issues with submodules, please check out TROUBLESHOOTING.md
$ cp .env.sample .env
Get the Firebase API key from the project leads and edit the .env
file to have this value.
# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn dev
# build for production and launch server
$ yarn build
$ yarn start
# generate static project
$ yarn generate
For detailed explanation on how things work, check out Nuxt.js docs.
Under the hood, this project uses nuxt/i18n and vue-i18n.
The locale files are managed through a separate repo, incorporated as a submodule. Here is the process for adding new translation keys:
- Clone the findadoc-localization repo
- Edit the
locales/en.json
to contain the new keys. - If you know another language, feel free to add the same key and translation to the appropriate locale file. Omit if you don't know it; we use English as the fallback language so nothing will break.
- Make a pull request to the localization repo and wait for it to be merged to
main
- Update the submodule (see above) to get the latest keys
- Make your change in this repo with the new i18n keys and submit your PR 🎉