@parvineyvazov/json-translator
Version:
Translate your JSON file or object into another languages with Google Translate API
8 lines (7 loc) • 593 B
TypeScript
import { TranslationModule } from './modules';
export declare function safeValueTransition(value: string): string;
export declare function translationModuleKeys(): string[];
export declare function getTranslationModuleByKey(key: string): TranslationModule;
export declare function getLanguageKeyFromValue(value: string, languages: Record<string, string>): string | undefined;
export declare function getLanguageValues(languages: Record<string, string>): string[];
export declare function getLanguageVariant(source: string, sourceValue: string, destination: string): string | undefined;