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

fix(translations): update etTranslations type to DefaultTranslationsObject #10358

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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 packages/translations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The home of Payloads API and Admin Panel translations.
#### Adding a new language

1. Create a new TS file in the `<payload-repo-root>/packages/translations/src/languages` folder, use the language code as the file name (e.g. `<payload-repo-root>/packages/translations/src/languages/en.ts` for English)
2. Copy all translations from an existing language file and update all of the translations to match your new language
2. Copy all translations from an existing language file and update all of the translations to match your new language. Make sure the translation object containing all the translations is type `DefaultTranslationsObject`.
3. Run one of the following:
```sh
yarn build
Expand Down
4 changes: 2 additions & 2 deletions packages/translations/src/languages/et.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Language } from '../types.js'
import type { DefaultTranslationsObject, Language } from '../types.js'

export const etTranslations = {
export const etTranslations: DefaultTranslationsObject = {
authentication: {
account: 'Konto',
accountOfCurrentUser: 'Praeguse kasutaja konto',
Expand Down