12 lines
408 B
TypeScript
12 lines
408 B
TypeScript
import type { AsyncFormattersInitializer } from "typesafe-i18n";
|
|
import type { Locales, Formatters } from "./i18n-types";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
export const initFormatters: AsyncFormattersInitializer<Locales, Formatters> = async (locale: Locales) => {
|
|
const formatters: Formatters = {
|
|
// add your formatter functions here
|
|
};
|
|
|
|
return formatters;
|
|
};
|