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.
1 parent 34276d3 commit 076af66Copy full SHA for 076af66
src/PhpWord/Style/Language.php
@@ -256,7 +256,9 @@ private function validateLocale($locale)
256
if ($locale !== null && strlen($locale) === 2) {
257
return strtolower($locale) . '-' . strtoupper($locale);
258
}
259
-
+ if ($locale === 'und') {
260
+ return 'en-EN';
261
+ }
262
if ($locale !== null && $locale !== 'zxx' && strstr($locale, '-') === false) {
263
throw new InvalidArgumentException($locale . ' is not a valid language code');
264
0 commit comments