#4161 (React l10n and i18n)

by Sharif Mehedi · in Developers · assigned to Sharif Mehedi

Kurzbeschreibung

I was just casually browsing.

Thought that I should keep a ref to these material for later, when I start working on it: www.freecodecamp.org/news/how-to-add-localization-to-your-react-app/


Also, to review webpack - niharraoteblog.netlify.app/webpack-react-app

Kinder

Kommentare

  • 5 Jahre, 1 Monat ago von Luc Saffre about #4161 (React l10n and i18n) : I still seem to prefer the static method, i.e. not as explained on freecodecamp.
  • 5 Jahre, 1 Monat ago von Luc Saffre about #4161 (React l10n and i18n) : The tutorial on freecodecamp is interesting and might work for us. To be meditated: "static" of "dynamic"? static means to use message_extractor for our js files and to generate one main.js file per language (what will happen when the user switches to another language?). The dynamic approach is to h...
  • 5 Jahre, 3 Monate ago von Luc Saffre about #4161 (React l10n and i18n) : Simple usage examples of jinja are in getlino.
  • 5 Jahre, 3 Monate ago von Luc Saffre about #4161 (React l10n and i18n) : My idea is to rename all files "X.js" to "X.jinja.js" and then to extend the package.json so that "npm run dev" (or build) would call some python script that uses Jinja to create temporary js files from these jinja templates into a temporary directory.