We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 106453c commit c6e426fCopy full SHA for c6e426f
src/context/TranslationContext.tsx
@@ -39,7 +39,9 @@ export const TranslationProvider: React.FC<TranslationProviderProps> = ({
39
useEffect(() => {
40
const initializeTranslations = async () => {
41
try {
42
- await service.init();
+ if (config.sourceLocale !== config.targetLocale) {
43
+ await service.init();
44
+ }
45
setLoading(false);
46
} catch (err) {
47
setError(
0 commit comments