Restore missing language code in datetime_utility.js
What does this MR do?
Restore missing language code variable in datetime_utility.js
.
Why was this MR needed?
lang
was removed from locale/index.js
in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15846 because checking for import.*lang.*locale
did not lead to datetime_utility.js
and because Webpack compilation did not fail the build (see https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16005).
Are there points in the code the reviewer needs to double check?
I found no way to write an automatic test for this without a major refactoring in locale/index.js
. Currently it is not possible to change the user language from tests.
What are the relevant issue numbers?
Edited by Inactive Account