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.
2 parents e456d27 + 11038d6 commit a479950Copy full SHA for a479950
src/repositories/translations.ts
@@ -84,7 +84,7 @@ export const getTranslationPathByName = (
84
): string | undefined => {
85
lang = lang ?? getTranslations().items.default;
86
87
- const fileName = match.replace(/^.*::/, "").replace(/\.[^.]+$/, "");
+ const fileName = match.replace(/^.*::/, "").replace(/^([^.]+)\..*$/, "$1");
88
89
return getTranslations().items.paths.find((path) => {
90
return (
0 commit comments