Skip to content

Commit

Permalink
docs: explain in FAQ the choice of namespaces for translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Apr 30, 2024
1 parent 2dd13b0 commit 6f2c950
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion documentation/docs/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ You can choose your preferred way :
1. Make a pull request on the repository : simply add translations files [for your locale](https://github.com/jy95/fhir-dosage-utils/tree/main/src/locales).
2. Use a [i18next backend](https://www.i18next.com/overview/plugins-and-utils#backends) like [showcast in documentation](custom/i18nConfig)

You can use [English files](https://github.com/jy95/fhir-dosage-utils/tree/main/src/locales/en) for reference.
You can use [English files](https://github.com/jy95/fhir-dosage-utils/tree/main/src/locales/en) for reference. Each file has a single responsibility :

- [common](https://github.com/jy95/fhir-dosage-utils/blob/main/src/locales/en/common.json) : Anything that isn't related to a specific ValueSet
- [daysOfWeek](https://github.com/jy95/fhir-dosage-utils/blob/main/src/locales/en/daysOfWeek.json) : Codes related to [Days Of Week](https://build.fhir.org/valueset-days-of-week.html) ValueSet
- [eventTiming](https://github.com/jy95/fhir-dosage-utils/blob/main/src/locales/en/eventTiming.json) : Codes related to [EventTiming](https://build.fhir.org/valueset-event-timing.html) ValueSet
- [unitsOfTime](https://github.com/jy95/fhir-dosage-utils/blob/main/src/locales/en/unitsOfTime.json) : Codes related to [UnitsOfTime](https://build.fhir.org/valueset-units-of-time.html) ValueSet

</details>

Expand Down

0 comments on commit 6f2c950

Please sign in to comment.