Skip to content

Restore missing language code in datetime_utility.js

Inactive Account requested to merge winh-fix-datetime_utility into master

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?

fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/41248

Edited by Inactive Account

Merge request reports