Skip to content

Commit

Permalink
IBX-9008: Added language helper
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Oct 17, 2024
1 parent 99b1711 commit 09bf8e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as formError from './form.error.helper';
import * as formValidation from './form.validation.helper';
import * as highlight from './highlight.helper';
import * as icon from './icon.helper';
import * as language from './language.helper';
import * as location from './location.helper';
import * as middleEllipsis from './middle.ellipsis';
import * as notification from './notification.helper';
Expand All @@ -27,6 +28,7 @@ import * as user from './user.helper';
ibexa.addConfig('helpers.formValidation', formValidation);
ibexa.addConfig('helpers.highlight', highlight);
ibexa.addConfig('helpers.icon', icon);
ibexa.addConfig('helpers.language', language);
ibexa.addConfig('helpers.location', location);
ibexa.addConfig('helpers.ellipsis.middle', middleEllipsis);
ibexa.addConfig('helpers.notification', notification);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const getLanguageCode = () => {
return window.document.querySelector('meta[name="LanguageCode"]')?.content;
};

export { getLanguageCode };

0 comments on commit 09bf8e7

Please sign in to comment.