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
358
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.61
  • 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 writeTranslationFiles.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
    

Here is a full list of language keys. Note that these are not all implemented, but if you would like to contribute and add a new language, you can use this list as a reference:

Language CodeLanguage Name
afAfrikaans
amAmharic
ar-saArabic (Saudi Arabia)
asAssamese
az-LatnAzerbaijani (Latin)
beBelarusian
bgBulgarian
bn-BDBangla (Bangladesh)
bn-INBangla (India)
bsBosnian (Latin)
caCatalan Spanish
ca-ES-valenciaValencian
csCzech
cyWelsh
daDanish
deGerman (Germany)
elGreek
en-GBEnglish (United Kingdom)
en-USEnglish (United States)
esSpanish (Spain)
es-ESSpanish (Spain)
es-USSpanish (United States)
es-MXSpanish (Mexico)
etEstonian
euBasque
faPersian
fiFinnish
fil-LatnFilipino
frFrench (France)
fr-FRFrench (France)
fr-CAFrench (Canada)
gaIrish
gd-LatnScottish Gaelic
glGalician
guGujarati
ha-LatnHausa (Latin)
heHebrew
hiHindi
hrCroatian
huHungarian
hyArmenian
idIndonesian
ig-LatnIgbo
isIcelandic
itItalian (Italy)
it-itItalian (Italy)
jaJapanese
kaGeorgian
kkKazakh
kmKhmer
knKannada
koKorean
kokKonkani
ku-ArabCentral Kurdish
ky-CyrlKyrgyz
lbLuxembourgish
ltLithuanian
lvLatvian
mi-LatnMaori
mkMacedonian
mlMalayalam
mn-CyrlMongolian (Cyrillic)
mrMarathi
msMalay (Malaysia)
mtMaltese
nbNorwegian (Bokmål)
neNepali (Nepal)
nlDutch (Netherlands)
nl-BEDutch (Netherlands)
nnNorwegian (Nynorsk)
nsoSesotho sa Leboa
orOdia
paPunjabi (Gurmukhi)
pa-ArabPunjabi (Arabic)
plPolish
prs-ArabDari
pt-BRPortuguese (Brazil)
pt-PTPortuguese (Portugal)
qut-LatnK’iche’
quzQuechua (Peru)
roRomanian (Romania)
ruRussian
rwKinyarwanda
sd-ArabSindhi (Arabic)
siSinhala
skSlovak
slSlovenian
sqAlbanian
sr-Cyrl-BASerbian (Cyrillic, Bosnia and Herzegovina)
sr-Cyrl-RSSerbian (Cyrillic, Serbia)
sr-Latn-RSSerbian (Latin, Serbia)
svSwedish (Sweden)
swKiswahili
taTamil
teTelugu
tg-CyrlTajik (Cyrillic)
thThai
tiTigrinya
tk-LatnTurkmen (Latin)
tnSetswana
trTurkish
tt-CyrlTatar (Cyrillic)
ug-ArabUyghur
ukUkrainian
urUrdu
uz-LatnUzbek (Latin)
viVietnamese
woWolof
xhisiXhosa
yo-LatnYoruba
zh-HansChinese (Simplified)
zh-HantChinese (Traditional)
zuisiZulu

FAQs

Package last updated on 09 Apr 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