Skip to main content

locales folder

Holds translation JSON files, typically one per language (ar.json, en.json, fr.json).

What’s inside?

  • Key/value strings used across templates and widgets.
  • Nested objects are fine; use clear, consistent keys.

Example

{
"headercart": "Shopping cart" ,
"commonbank_offer_sub_title_single": "Single bank offer"
}

How to use

  • In Nunjucks with the translate tag:
{%  t("headercart") %}
  • In JS if translations are exposed on __qumra__ or similar context.

Tips

  • Keep keys consistent across languages.
  • Name keys by location/purpose (e.g., header.cart, footer.contact) to stay organized.