mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-11 02:09:57 +03:00
12 lines
376 B
TypeScript
12 lines
376 B
TypeScript
import type { FormattersInitializer } from 'typesafe-i18n';
|
|
import type { Locales, Formatters } from './i18n-types';
|
|
import { date } from 'typesafe-i18n/formatters';
|
|
|
|
export const initFormatters: FormattersInitializer<Locales, Formatters> = (locale: Locales) => {
|
|
const formatters: Formatters = {
|
|
weekday: date(locale, { weekday: 'long' })
|
|
};
|
|
|
|
return formatters;
|
|
};
|