mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[I18n] Update TS types in i18n engine (#23754)
* [I18n] Export i18n service type * Add InjectedIntl export and context type
This commit is contained in:
parent
b2baf32fba
commit
95edbcdfbf
3 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,6 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
export { I18nProvider } from './provider';
|
||||
export { I18nProvider, I18nServiceType } from './provider';
|
||||
export { i18nFilter } from './filter';
|
||||
export { i18nDirective } from './directive';
|
||||
|
|
|
@ -160,6 +160,7 @@ export function getRegisteredLocales() {
|
|||
interface TranslateArguments {
|
||||
values?: { [key: string]: string | number | Date };
|
||||
defaultMessage?: string;
|
||||
context?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
export {
|
||||
intlShape,
|
||||
InjectedIntl,
|
||||
FormattedDate,
|
||||
FormattedTime,
|
||||
FormattedRelative,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue