@hellpig/anarchy-i18n 1.4.5 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Constants/Locales.gen.d.ts +1 -1
- package/dist/Mixins/ReactiveTranslationMixin.d.ts +1 -1
- package/dist/Models/TLocalesMapping.d.ts +1 -1
- package/dist/Models/TTranslationService.d.ts +2 -2
- package/dist/Services/TranslationService.d.ts +1 -1
- package/dist/Utils/LocalesUtils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TReactiveTranslationMixin, TTranslationService } from '
|
|
1
|
+
import { TReactiveTranslationMixin, TTranslationService } from '@hellpig/anarchy-i18n/Models';
|
|
2
2
|
export declare function ReactiveTranslationMixin(service: Omit<TTranslationService, keyof TReactiveTranslationMixin>): TReactiveTranslationMixin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MessageFormatElement } from '@formatjs/icu-messageformat-parser';
|
|
2
2
|
import { FormatNumberOptions, IntlShape } from '@formatjs/intl';
|
|
3
3
|
import { FormatDateOptions } from '../../../../node_modules/@formatjs/intl/src/types.d.ts';
|
|
4
|
-
import { TLocale } from '
|
|
5
|
-
import { TMessages } from '
|
|
4
|
+
import { TLocale } from '@hellpig/anarchy-i18n/Models/TLocale';
|
|
5
|
+
import { TMessages } from '@hellpig/anarchy-i18n/Models/TMessages';
|
|
6
6
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
7
7
|
import { TReactiveTranslationMixin } from './TReactiveTranslationMixin';
|
|
8
8
|
export type TTranslationService = Readonly<{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TLocale, TLocalesMapping, TTranslationService } from '
|
|
1
|
+
import { TLocale, TLocalesMapping, TTranslationService } from '@hellpig/anarchy-i18n/Models';
|
|
2
2
|
export declare function TranslationService(initialLocale: TLocale, defaultLocale: TLocale, locales: TLocalesMapping): TTranslationService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TLocale, TLocaleId } from '
|
|
1
|
+
import { TLocale, TLocaleId } from '@hellpig/anarchy-i18n/Models';
|
|
2
2
|
export declare const getLangFromLocaleId: (localeId: TLocaleId) => string;
|
|
3
3
|
export declare function getPreferLocaleId(preferredLocaleIds: ReadonlyArray<TLocaleId>, availableLocaleIds: ReadonlyArray<TLocaleId>, fallBackLocaleId: TLocaleId): TLocaleId;
|
|
4
4
|
export declare function getLocaleByLocaleId(localeId: TLocaleId, availableLocales: ReadonlyArray<TLocale>): TLocale | never;
|