summaryrefslogtreecommitdiff
path: root/spec/javascripts/helpers/locale_helper.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/helpers/locale_helper.js')
-rw-r--r--spec/javascripts/helpers/locale_helper.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/spec/javascripts/helpers/locale_helper.js b/spec/javascripts/helpers/locale_helper.js
deleted file mode 100644
index 80047b06003..00000000000
--- a/spec/javascripts/helpers/locale_helper.js
+++ /dev/null
@@ -1,11 +0,0 @@
-/* eslint-disable import/prefer-default-export */
-
-export const setLanguage = languageCode => {
- const htmlElement = document.querySelector('html');
-
- if (languageCode) {
- htmlElement.setAttribute('lang', languageCode);
- } else {
- htmlElement.removeAttribute('lang');
- }
-};