Files
041990322f docs: ✏️ Add i18n documentation (#1679)
* docs: ✏️ Add i18n documentation

---------

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
Co-authored-by: lisbet-alvarez <107949262+lisbet-alvarez@users.noreply.github.com>
2023-05-05 11:27:05 -07:00
..
2023-05-05 11:27:05 -07:00

Boundary Developer conventions

I18n:

We use ember-intl to manage i18n. All the code related to i18n lives within the core addon.

All the features provided by ember-intl are available to use, on top of that, the Boundary team provides some custom helpers.

Dates & Time

Dates and time must be expressed when possible using the <time> HTML element.

The desired date format for the Boundary teams is: YYYY-MM-DD HH-MM-SS TZ

Strings

Plain text strings must be avoided, we use a rule (no-bare-strings) within our linter to avoid committing plain text strings.

To learn how to add a translation, check documentation.

All our translations files are located in the translations folder within Core Addon, check the specific translations Readme to learn more about it.

To learn more how to use a translation on the templates checkout the t helper documentation.