chore: t function removed from context and i18n config moved to a seperated file
This commit is contained in:
@@ -4,12 +4,10 @@ import { createContext } from 'react';
|
||||
export interface LangaugeContextModel {
|
||||
language: Language;
|
||||
changeLanguage: (langauge: Language) => void;
|
||||
t: (key: string) => string;
|
||||
}
|
||||
|
||||
// The context is used by the LangaugeProvider
|
||||
export const LangaugeContext = createContext<LangaugeContextModel>({
|
||||
language: 'fa',
|
||||
changeLanguage: () => {},
|
||||
t: () => '',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user