UNPKG

@hug/ngx-g11n

Version:

Angular helpers for internationalizing and localizing your application

29 lines (25 loc) 950 B
import { LOCALES } from '@hug/ngx-g11n/internal'; /* eslint-disable @typescript-eslint/naming-convention */ const withDefaultLocales = (locales = {}) => ({ providers: [{ provide: LOCALES, useValue: { 'fr-CH': { base: () => import('@angular/common/locales/fr-CH'), extra: () => import('@angular/common/locales/extra/fr-CH'), datefns: () => import('date-fns/locale/fr-CH'), }, 'de-CH': { base: () => import('@angular/common/locales/de-CH'), extra: () => import('@angular/common/locales/extra/de-CH'), datefns: () => import('date-fns/locale/de'), }, ...locales, }, }], }); /** * Generated bundle index. Do not edit. */ export { withDefaultLocales }; //# sourceMappingURL=hug-ngx-g11n-locales.mjs.map