mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
26 lines
720 B
TypeScript
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
|
|
}
|
|
};
|
|
}
|