Merge pull request #244 from hashicorp/oss/merge-main-041990322fb625ae6517a9e6fe44303c4634714d

[main] OSS to ENT merge of (0419903)
This commit is contained in:
hc-github-team-secure-boundary authored and GitHub committed 2023-05-05 11:42:04 -07:00
commit fbfad4e649
1 file changed
+23
+23
View File
@@ -0,0 +1,23 @@
# Boundary Developer conventions
## I18n:
We use [ember-intl](https://ember-intl.github.io/ember-intl/) to manage i18n. All the code related to i18n lives within [the core addon](https://github.com/hashicorp/boundary-ui/tree/main/addons/core).
All the features provided by ember-intl are available to use, on top of that, the Boundary team [provides some custom helpers](https://github.com/hashicorp/boundary-ui/tree/main/addons/core/addon/helpers).
### Dates & Time
Dates and time must be expressed when possible using the [`<time>` HTML element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time).
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`)](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-bare-strings.md) within our linter to avoid committing plain text strings.
To learn how to add a translation, [check documentation](https://ember-intl.github.io/ember-intl/docs/quickstart#2-add-your-first-translation).
All our translations files are located [in the translations folder](https://github.com/hashicorp/boundary-ui/tree/main/addons/core/translations) within Core Addon, check the specific [translations Readme](https://github.com/hashicorp/boundary-ui/blob/main/addons/core/translations/README.md) to learn more about it.
To learn more how to use a translation on the templates checkout [the `t` helper documentation](https://ember-intl.github.io/ember-intl/docs/helpers/t).