Package Exports
- @payloadcms/translations
 - @payloadcms/translations/api
 - @payloadcms/translations/client
 
Readme
Payload Translations
These are the translations for Payload. Translations are used on both the server and the client. The admin panel uses translations to display text to the user in their selected language. The server uses translations when sending API responses.
How to contribute
Updating a translation
- Open the language file you wish to edit located within the 
src/allfolder - Update the translation value
 - Run one of the following:
yarn build // or npm build // or pnpm build
 
Adding a new translation
- Add the new translation key/value pair for all languages located in the 
src/allfolder - Open the 
src/build.tsfile and add the key to eitherclientTranslationKeysorserverTranslationKeysdepending on where the translation will be used. - Run one of the following:
yarn build // or npm build // or pnpm build
 
Adding a new language
- Create a new JSON file in the 
src/allfolder with the language code as the file name (e.g.en.jsonfor English) - Translate all of the keys in the new file
 - Open the 
src/index.tsfile and import your json file and then export it inside thetranslationsobject - Run one of the following:
yarn build // or npm build // or pnpm build