Skip to content

Commit

Permalink
only ignore prefix for core namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rajpal committed Sep 20, 2023
1 parent 873387a commit aba2efb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/meteor/client/providers/TranslationProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ const useI18next = (lng: string): typeof i18next => {
result[key.slice(prefix.length + 1)] = value;
continue;
}
result[key] = value;

if (Array.isArray(namespaces) ? namespaces.includes('core') : namespaces === 'core') {
result[key] = value;
}
}
}
}
Expand Down

0 comments on commit aba2efb

Please sign in to comment.