From 72d64688cb63c06d6a03c5163e2473eca098cab6 Mon Sep 17 00:00:00 2001 From: Mario Subotic Date: Fri, 1 Apr 2022 15:39:17 +0800 Subject: [PATCH] fix(translation-context): expose types --- lib/src/contexts/translationContext.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/contexts/translationContext.tsx b/lib/src/contexts/translationContext.tsx index 8ac73d050..1b5ecaa8a 100644 --- a/lib/src/contexts/translationContext.tsx +++ b/lib/src/contexts/translationContext.tsx @@ -2,9 +2,9 @@ import { isEmpty } from "@sebgroup/frontend-tools/isEmpty"; import pupa from "pupa"; import React from "react"; -type TranslationValues = string | Array; +export type TranslationValues = string | Array; -interface Translation { +export interface Translation { [key: string]: TranslationValues; } @@ -35,7 +35,7 @@ export interface TranslationProviderProps { */ fallbackTranslation?: Translation; /** - * The response path to the translation, defaulted to "result.content". + * The response path to the translation, defaulted to `result.content`. * This is to map the response into actual translation key mapping. */ translationPath?: string;