Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Spanish #904

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ just i18n $lang
If you want to add Japanese you will create a file `/src/i18n/jp/translations.ts` and populate it with keys like so:
```
export default {
Common: {
common: {
continue: "続ける",
...
}
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pre:
pnpm run pre-commit

i18n LANG:
#!/bin/bash
#!/usr/bin/env bash
pnpm eslint-path "./src/i18n/{{LANG}}/translations.ts" --rule "{internal-rules/check-i18n-keys: warn}"

local:
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ import { use } from "i18next";
import LanguageDetector from "i18next-browser-languagedetector";

import en from "~/i18n/en/translations";
import es from "~/i18n/es/translations";
import ko from "~/i18n/ko/translations";
import pt from "~/i18n/pt/translations";

export const resources = {
en: {
translations: en
},
es: {
translations: es
},
pt: {
translations: pt
},
Expand Down
Loading
Loading