diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-01-26 18:13:42 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-01-26 18:13:42 -0400 |
commit | 477e80508a8d2274b782a47b29fb6b5c59943d48 (patch) | |
tree | 654c2f88268623a5a019054b55a136e7e887135d /src/urls.js | |
parent | 1b97addab85465cadee6964dd5670dda7ad21458 (diff) |
urls: getURLsFromRoot: recognize localizedDefaultLanguage
Diffstat (limited to 'src/urls.js')
-rw-r--r-- | src/urls.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/urls.js b/src/urls.js index 83a8b904..2976a522 100644 --- a/src/urls.js +++ b/src/urls.js @@ -303,11 +303,9 @@ export function getURLsFromRoot({ return ( '/' + (groupKey === 'localized' && baseDirectory - ? to( - 'localizedWithBaseDirectory.' + subKey, - baseDirectory, - ...args - ) + ? to('localizedWithBaseDirectory.' + subKey, baseDirectory, ...args) + : groupKey === 'localizedDefaultLanguage' + ? to('localized.' + subKey, ...args) : to(targetFullKey, ...args)) ); }; |