Skip to content

123lk/cake-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to add new translations

  1. Add Formatted Message to the element you want to translate
<FormattedMessage id="Page1.header" defaultMessage="Hello, I am page 1." />
  1. Update message with the translation in 'public/locales/es.json'
{
  "Page1.header": "Hola soy la página 1.",
  "Page2.header": "Hola soy la página 2.",
  "Page1.button": "Ir a la página 2.",
  "Page2.button": "Ir a la página 1."
}
  1. Run the following command to update the app with new translations
npm run build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published