Skip to content

Commit

Permalink
chore(all): prepare release 3.0.0-beta.6
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 27, 2019
1 parent 219a849 commit c802b25
Show file tree
Hide file tree
Showing 11 changed files with 1,750 additions and 350 deletions.
3 changes: 1 addition & 2 deletions dist/amd/aurelia-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,14 @@ define('aurelia-i18n', ['exports', 'i18next', 'aurelia-logging', 'aurelia-depend
return __generator(this, function (_a) {
defaultOptions = {
skipTranslationOnMissingKey: false,
compatibilityAPI: "v1",
compatibilityJSON: "v1",
lng: "en",
attributes: ["t", "i18n"],
fallbackLng: "en",
debug: false
};
this.i18nextDeferred = new Promise(function (resolve, reject) {
_this.i18next = _this.i18next.init(options || defaultOptions, function (err) {
_this.i18next = _this.i18next.createInstance(options || defaultOptions, function (err) {
if (err) {
reject(err);
}
Expand Down
12 changes: 6 additions & 6 deletions dist/aurelia-i18n.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import i18next from 'i18next';
import { Container } from 'aurelia-dependency-injection';
import { EventAggregator } from 'aurelia-event-aggregator';
import { FrameworkConfiguration } from 'aurelia-framework';
import { Loader } from 'aurelia-loader';
import { BindingSignaler, SignalBindingBehavior } from 'aurelia-templating-resources';
import i18next from 'i18next';

export interface AureliaEnhancedOptions extends i18next.InitOptions {
attributes?: string[];
Expand All @@ -28,12 +28,12 @@ export declare class I18N {
constructor(ea: EventAggregator, signaler: BindingSignaler);
setup(options?: AureliaEnhancedOptions & i18next.InitOptions): Promise<AureliaEnhancedI18Next>;
i18nextReady(): Promise<AureliaEnhancedI18Next>;
setLocale(locale: string): Promise<i18next.TranslationFunction>;
setLocale(locale: string): Promise<i18next.TFunction>;
getLocale(): string;
nf(options?: Intl.NumberFormatOptions, locales?: string | string[]): Intl.NumberFormat;
uf(numberLike: string, locale?: string): number;
df(options?: Intl.DateTimeFormatOptions, locales?: string | string[]): Intl.DateTimeFormat;
tr(key: string | string[], options?: i18next.TranslationOptions<object>): any;
tr(key: string | string[], options?: i18next.TOptions<object>): string;
registerGlobalVariable(key: string, value: any): void;
unregisterGlobalVariable(key: string): void;
/**
Expand All @@ -59,8 +59,8 @@ export declare class RelativeTime {
newValue: string;
}): void;
addTranslationResource(key: string, translation: any): void;
getRelativeTime(time: Date): any;
getTimeDiffDescription(diff: number, unit: "year" | "month" | "day" | "hour" | "minute" | "second", timeDivisor: number): any;
getRelativeTime(time: Date): string;
getTimeDiffDescription(diff: number, unit: "year" | "month" | "day" | "hour" | "minute" | "second", timeDivisor: number): string | null;
}
export declare type LoadPathOption = string | ((lngs: string[], namespaces: string[]) => string);
export declare type LoadCallback = (error: any, result: string | false | undefined) => void;
Expand Down Expand Up @@ -170,6 +170,6 @@ export declare class TValueConverter {
private service;
static inject(): (typeof I18N)[];
constructor(service: I18N);
toView(value: any, options?: i18next.TranslationOptions<object>): any;
toView(value: any, options?: i18next.TOptions<object>): string;
}
export declare function configure(frameworkConfig: FrameworkConfiguration, cb: (instance: I18N) => AureliaEnhancedI18Next): AureliaEnhancedI18Next;
3 changes: 1 addition & 2 deletions dist/commonjs/aurelia-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,14 @@ var I18N = /** @class */ (function () {
return __generator(this, function (_a) {
defaultOptions = {
skipTranslationOnMissingKey: false,
compatibilityAPI: "v1",
compatibilityJSON: "v1",
lng: "en",
attributes: ["t", "i18n"],
fallbackLng: "en",
debug: false
};
this.i18nextDeferred = new Promise(function (resolve, reject) {
_this.i18next = _this.i18next.init(options || defaultOptions, function (err) {
_this.i18next = _this.i18next.createInstance(options || defaultOptions, function (err) {
if (err) {
reject(err);
}
Expand Down
3 changes: 1 addition & 2 deletions dist/es2015/aurelia-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ class I18N {
return __awaiter(this, void 0, void 0, function* () {
const defaultOptions = {
skipTranslationOnMissingKey: false,
compatibilityAPI: "v1",
compatibilityJSON: "v1",
lng: "en",
attributes: ["t", "i18n"],
fallbackLng: "en",
debug: false
};
this.i18nextDeferred = new Promise((resolve, reject) => {
this.i18next = this.i18next.init(options || defaultOptions, (err) => {
this.i18next = this.i18next.createInstance(options || defaultOptions, (err) => {
if (err) {
reject(err);
}
Expand Down
3 changes: 1 addition & 2 deletions dist/es2017/aurelia-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ class I18N {
async setup(options) {
const defaultOptions = {
skipTranslationOnMissingKey: false,
compatibilityAPI: "v1",
compatibilityJSON: "v1",
lng: "en",
attributes: ["t", "i18n"],
fallbackLng: "en",
debug: false
};
this.i18nextDeferred = new Promise((resolve, reject) => {
this.i18next = this.i18next.init(options || defaultOptions, (err) => {
this.i18next = this.i18next.createInstance(options || defaultOptions, (err) => {
if (err) {
reject(err);
}
Expand Down
3 changes: 1 addition & 2 deletions dist/native-modules/aurelia-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,14 @@ var I18N = /** @class */ (function () {
return __generator(this, function (_a) {
defaultOptions = {
skipTranslationOnMissingKey: false,
compatibilityAPI: "v1",
compatibilityJSON: "v1",
lng: "en",
attributes: ["t", "i18n"],
fallbackLng: "en",
debug: false
};
this.i18nextDeferred = new Promise(function (resolve, reject) {
_this.i18next = _this.i18next.init(options || defaultOptions, function (err) {
_this.i18next = _this.i18next.createInstance(options || defaultOptions, function (err) {
if (err) {
reject(err);
}
Expand Down
3 changes: 1 addition & 2 deletions dist/system/aurelia-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,14 @@ System.register(['i18next', 'aurelia-logging', 'aurelia-dependency-injection', '
return __generator(this, function (_a) {
defaultOptions = {
skipTranslationOnMissingKey: false,
compatibilityAPI: "v1",
compatibilityJSON: "v1",
lng: "en",
attributes: ["t", "i18n"],
fallbackLng: "en",
debug: false
};
this.i18nextDeferred = new Promise(function (resolve, reject) {
_this.i18next = _this.i18next.init(options || defaultOptions, function (err) {
_this.i18next = _this.i18next.createInstance(options || defaultOptions, function (err) {
if (err) {
reject(err);
}
Expand Down
Loading

0 comments on commit c802b25

Please sign in to comment.