@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.
@@ -1,4 +1,4 @@
1
- import { TLocale } from '../Models';
1
+ import { TLocale } from '@hellpig/anarchy-i18n/Models';
2
2
  export declare const afZa: TLocale;
3
3
  export declare const amEt: TLocale;
4
4
  export declare const arSa: TLocale;
@@ -1,2 +1,2 @@
1
- import { TReactiveTranslationMixin, TTranslationService } from '../Models';
1
+ import { TReactiveTranslationMixin, TTranslationService } from '@hellpig/anarchy-i18n/Models';
2
2
  export declare function ReactiveTranslationMixin(service: Omit<TTranslationService, keyof TReactiveTranslationMixin>): TReactiveTranslationMixin;
@@ -1,3 +1,3 @@
1
- import { TLocale } from './TLocale';
1
+ import { TLocale } from '@hellpig/anarchy-i18n/Models/TLocale';
2
2
  import { TMessages } from './TMessages';
3
3
  export type TLocalesMapping = Partial<Record<TLocale['id'], () => Promise<TMessages>>>;
@@ -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 './TLocale';
5
- import { TMessages } from './TMessages';
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 '../Models';
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 '../Models';
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;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@hellpig/anarchy-i18n",
3
3
  "author": "S. Panfilov",
4
4
  "private": false,
5
- "version": "1.4.5",
5
+ "version": "1.4.6",
6
6
  "type": "module",
7
7
  "repository": {
8
8
  "type": "git",