@bluxcc/react 0.1.20 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ export type LanguageKey = 'en' | 'es';
2
+ export type Translations = {
3
+ [key: string]: {
4
+ [lang in LanguageKey]: string;
5
+ };
6
+ };
7
+ export type TranslationKey = keyof typeof translations;
8
+ declare const translations: Translations;
9
+ export default translations;
@@ -1,9 +1,10 @@
1
- import React from 'react';
2
1
  import { Routes } from '../../types';
2
+ import { LanguageKey } from '../../constants/locales';
3
+ import React from 'react';
3
4
  type RouteContent = {
4
5
  title: string;
5
6
  isSticky?: boolean;
6
7
  Component: React.JSX.Element;
7
8
  };
8
- export declare const modalContent: Record<Routes, RouteContent>;
9
+ export declare const getModalContent: (lang: LanguageKey) => Record<Routes, RouteContent>;
9
10
  export {};
@@ -0,0 +1,2 @@
1
+ import { TranslationKey } from '../constants/locales';
2
+ export declare const useLang: () => (key: TranslationKey, vars?: Record<string, string>) => string;