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

@payloadcms/translations

Package Overview
Dependencies
Maintainers
9
Versions
336
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payloadcms/translations

The home of Payloads API and Admin Panel translations.

  • 3.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18K
increased by5.48%
Maintainers
9
Weekly downloads
 
Created
Source

Payload Translations

The home of Payloads API and Admin Panel translations.

How to contribute

Updating a translation
  1. Update the translation value
  2. 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 <payload-repo-root>/packages/translations/src/languages folder
  2. Run one of the following:
    yarn build
    // or
    npm build
    // or
    pnpm build
    
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
  3. Run one of the following:
    yarn build
    // or
    npm build
    // or
    pnpm build
    
  4. Import and export your new language file from within <payload-repo-root>/packages/translations/src/exports/all.ts
  5. Re-export the file from within <payload-repo-root>/packages/payload/src/exports/i18n/[your-new-language].ts

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 20 Nov 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