[feat]: include dayjsLocale reference in README.md

This commit is contained in:
zaaakher 2024-05-02 19:16:53 +03:00
parent 9b45b2a655
commit b599558b29

View file

@ -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