diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-06-10 00:35:22 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-06-10 00:35:22 +0200 |
| commit | 21764214c257949844d87e445f1a9f2736a20561 (patch) | |
| tree | 9fb2369ea92a53c6ba19825424693c73aab7c1e1 /apps/web-shared/src/lib/i18n/formatters.ts | |
| parent | f6156d9137d4c07dd7afc8c3288dc00879db0b73 (diff) | |
| download | greatoffice-21764214c257949844d87e445f1a9f2736a20561.tar.xz greatoffice-21764214c257949844d87e445f1a9f2736a20561.zip | |
feat: Add translations to stopwatch.svelte
This commit also demonstrates how to do i18n across apps.
Diffstat (limited to 'apps/web-shared/src/lib/i18n/formatters.ts')
| -rw-r--r-- | apps/web-shared/src/lib/i18n/formatters.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/web-shared/src/lib/i18n/formatters.ts b/apps/web-shared/src/lib/i18n/formatters.ts new file mode 100644 index 0000000..78734f9 --- /dev/null +++ b/apps/web-shared/src/lib/i18n/formatters.ts @@ -0,0 +1,11 @@ +import type { FormattersInitializer } from 'typesafe-i18n' +import type { Locales, Formatters } from './i18n-types' + +export const initFormatters: FormattersInitializer<Locales, Formatters> = (locale: Locales) => { + + const formatters: Formatters = { + // add your formatter functions here + } + + return formatters +} |
