Skip to content

Commit

Permalink
IBX-9008: Added language helper (#1370)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM authored Oct 18, 2024
1 parent 78cffbe commit cd4176a
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 content from './content.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.content', content);
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 getEditLanguageCode = () => {
return window.document.querySelector('meta[name="LanguageCode"]')?.content;
};

export { getEditLanguageCode };

0 comments on commit cd4176a

Please sign in to comment.