mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 13:23:28 +00:00
[feat]: i18n contribution to include mention of dayjsLocales
(#2444)
* [feat]: update i18n contribution docs
* [feat]: include `dayjsLocale` reference in README.md
* Revert "[feat]: include `dayjsLocale` reference in README.md"
This reverts commit b599558b29
.
* chore: fix locales/readme conflict
This commit is contained in:
parent
82bc958119
commit
e83e84e278
|
@ -16,6 +16,18 @@ export const LANGUAGE_OPTIONS = [
|
|||
// The rest of the languages
|
||||
];
|
||||
```
|
||||
Finally, add the new language code to the `dayjsLocales` object in `interface/locales/index.ts`. list of dayjs locales can be found [here](https://cdn.jsdelivr.net/npm/dayjs@1/locale.json)
|
||||
|
||||
```ts
|
||||
const dayjsLocales: Record<string, any> = {
|
||||
// Add the new language code and import statement here
|
||||
// Example:
|
||||
// es: () => import('dayjs/locale/es.js'),
|
||||
en: () => import('dayjs/locale/en.js'),
|
||||
de: () => import('dayjs/locale/de.js'),
|
||||
// The rest of the languages
|
||||
};
|
||||
```
|
||||
|
||||
## Syncing locales
|
||||
|
||||
|
|
Loading…
Reference in a new issue