We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8f4459 commit b93b7fcCopy full SHA for b93b7fc
src/index.ts
@@ -16,7 +16,7 @@ const defaultResolve = (lang: string): Promise<LanguageJsonFileInterface> => {
16
* The default options, for the plugin.
17
*/
18
const DEFAULT_OPTIONS: OptionsInterface = {
19
- lang: document.documentElement.lang || 'en',
+ lang: document.documentElement.lang ? document.documentElement.lang.replace('-', '_') : 'en',
20
resolve: defaultResolve
21
}
22
0 commit comments