From 477e80508a8d2274b782a47b29fb6b5c59943d48 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 26 Jan 2025 18:13:42 -0400 Subject: urls: getURLsFromRoot: recognize localizedDefaultLanguage --- src/urls.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/urls.js') 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)) ); }; -- cgit 1.3.0-6-gf8a5