Skip to content

Commit cb6d097

Browse files
authored
Support having the same language with multiple locales for preview (#949)
1 parent 063e372 commit cb6d097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/PreviewGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected function getLocalePreviewConfig(Concrete $object): array
8282

8383
$locales = [];
8484
foreach (Tool::getValidLanguages() as $locale) {
85-
$label = \Locale::getDisplayLanguage($locale, $userLocale);
85+
$label = sprintf('%s (%s)', \Locale::getDisplayLanguage($locale, $userLocale), $locale);
8686
$locales[$label] = $locale;
8787
}
8888

0 commit comments

Comments
 (0)