Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@payloadcms/translations

Package Overview
Dependencies
Maintainers
7
Versions
344
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payloadcms/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.

  • 3.0.0-alpha.40
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28K
increased by23.51%
Maintainers
7
Weekly downloads
 
Created
Source

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
  1. Open the language file you wish to edit located within the src/all folder
  2. Update the translation value
  3. Run one of the following:
    yarn build
    // or
    npm build
    // or
    pnpm build
    
Adding a new translation
  1. Add the new translation key/value pair for all languages located in the src/all folder
  2. Open the src/build.ts file and add the key to either clientTranslationKeys or serverTranslationKeys depending on where the translation will be used.
  3. Run one of the following:
    yarn build
    // or
    npm build
    // or
    pnpm build
    
Adding a new language
  1. Create a new JSON file in the src/all folder with the language code as the file name (e.g. en.json for English)
  2. Translate all of the keys in the new file
  3. Open the src/index.ts file and import your json file and then export it inside the translations object
  4. Run one of the following:
    yarn build
    // or
    npm build
    // or
    pnpm build
    

FAQs

Package last updated on 08 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc