angular-l10n
Version:
An Angular library to translate messages, dates and numbers
79 lines • 1.99 kB
JavaScript
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
import { InjectionToken } from '@angular/core';
/** @type {?} */
export const L10N_CONFIG = new InjectionToken('L10N_CONFIG');
/**
* @record
*/
export function L10nConfig() { }
if (false) {
/**
* Locale service configuration.
* @type {?|undefined}
*/
L10nConfig.prototype.locale;
/**
* Translation service configuration.
* @type {?|undefined}
*/
L10nConfig.prototype.translation;
/**
* Logger configuration.
* @type {?|undefined}
*/
L10nConfig.prototype.logger;
/**
* Localized routing configuration.
* @type {?|undefined}
*/
L10nConfig.prototype.localizedRouting;
/**
* Search configuration.
* @type {?|undefined}
*/
L10nConfig.prototype.search;
/**
* Locale interceptor configuration.
* @type {?|undefined}
*/
L10nConfig.prototype.localeInterceptor;
}
/**
* @param {?} l10nConfig
* @return {?}
*/
export function l10nConfigFactory(l10nConfig) {
return {
locale: l10nConfig.locale || {},
translation: l10nConfig.translation || {},
logger: l10nConfig.logger || {},
localizedRouting: l10nConfig.localizedRouting || {},
search: l10nConfig.search || {},
localeInterceptor: l10nConfig.localeInterceptor || {}
};
}
/**
* @record
*/
export function Token() { }
if (false) {
/**
* Defines the locale storage to be used.
* @type {?|undefined}
*/
Token.prototype.localeStorage;
/**
* Defines the translation provider to be used.
* @type {?|undefined}
*/
Token.prototype.translationProvider;
/**
* Defines the translation handler to be used.
* @type {?|undefined}
*/
Token.prototype.translationHandler;
}
//# sourceMappingURL=l10n-config.js.map