DefinitelyTyped/types/i18next-ko/index.d.ts
2018-06-13 15:43:39 +02:00

26 lines
720 B
TypeScript

// Type definitions for i18next-ko 3.0
// Project: https://github.com/leMaik/i18next-ko
// Definitions by: Daniel Waxweiler <https://github.com/dwaxweiler>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="knockout"/>
import * as i18next from 'i18next';
export const i18n: i18next.i18n;
export function init(resourceStore: i18nextkoResourceStore, language: string, ko: KnockoutStatic): void;
export function setLanguage(language: string): void;
export function t(key: string): KnockoutComputed<string>;
export interface i18nextkoResourceStore {
[language: string]: {
translation: {
[key: string]: string
}
};
}