Skip to content

Commit

Permalink
Update contributing guide for making translations
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Jun 24, 2023
1 parent 5fab235 commit 5ff79eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ localization! Follow these steps to add a new localization:
[plural rules][plural-rules] for translation keys with an object as the value
(e.g. those that require `{{ count }}`).
4. Copy one of the README files and name it `README.[code].md`, e.g.
`README.id.md` and translate the content. Add your language to the bottom of
the new README and all the existing READMEs.
`README.id.md` and translate the content. Add your language to the new README
and all the existing READMEs, ordered by the language code.
5. Edit [`i18n.tsx`][i18n-tsx] and update the following variables:
- `availableLanguages`: include your language code and name.
- `rtlLanguages`: include your language code if it is a right-to-left
language.
- `dateFormatters`, `shortDateFormatters`, `shortDateYearFormatters`, and
`relativeTimeFormatters`: include new objects with your language code,
following the existing languages.
Expand Down

1 comment on commit 5ff79eb

@vercel
Copy link

@vercel vercel bot commented on 5ff79eb Jun 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.