The title of the issues list issuable-created-at is not locale
Summary
The title of the issues list issuable-created-at is not locale.
Steps to reproduce
- User Settings -> Preferences -> Localization -> Language: select Chinese, Simplified - 简体中文
- select my project -> issues -> list: Mouse over the creation date
Example Project
What is the current bug behavior?
The title of the issues list issuable-created-at is not locale
What is the expected correct behavior?
The title of the issues list issuable-created-at is locale
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: CentOS 7.6.1810 Current User: git Using RVM: no Ruby Version: 2.7.5p203 Gem Version: 3.1.4 Bundler Version:2.2.33 Rake Version: 13.0.6 Redis Version: 6.2.6 Sidekiq Version:6.4.0 Go Version: unknown GitLab information Version: 15.0.0 Revision: 8a186dedfc1 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.10 URL: https://git-blb.com HTTP Clone URL: https://git-blb.com/some-group/some-project.git SSH Clone URL: git@git-blb.com:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: blb_wms GitLab Shell Version: 14.3.0 Repository storage paths: - default: /mnt/data/git/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 14.3.0 ? ... OK (14.3.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Checking Reply by email ...
IMAP server credentials are correct? ... Checking incoming Checking incoming yes Mailroom enabled? ... skipped MailRoom running? ... skipped
Checking Reply by email ... Finished
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units) Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units) Projects have namespace: ... 2/1 ... yes 2/2 ... yes 2/3 ... yes 2/6 ... yes 2/8 ... yes 2/10 ... yes 2/11 ... yes 2/12 ... yes 2/14 ... yes 2/15 ... yes 9/16 ... yes 9/21 ... yes 9/22 ... yes 9/23 ... yes 1/25 ... yes 2/27 ... yes 2/28 ... yes 2/29 ... yes 9/30 ... yes 1/31 ... yes 2/32 ... yes 9/34 ... yes 8/38 ... yes 8/41 ... yes 2/42 ... yes 2/43 ... yes 9/44 ... yes 9/45 ... yes 9/46 ... yes 8/48 ... yes 8/49 ... yes 8/50 ... yes 2/51 ... yes 1/54 ... yes 9/55 ... yes 10/56 ... yes 10/57 ... yes 10/58 ... yes 10/59 ... yes 9/61 ... yes 5/62 ... yes 1/66 ... yes 1/67 ... yes 1/68 ... yes Redis version >= 5.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (2.7.5) Git user has default SSH configuration? ... yes Active users: ... 10 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/vue_shared/issuable/list/components/issuable_item.vue#L239
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/vue_shared/mixins/timeago.js#L14
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/lib/utils/datetime/date_format_utility.js#L150
date_format_utility.js: Add the following code
import { i18n } from "dateformat";
i18n.dayNames = [
__("Sun"),
__("Mon"),
__("Tue"),
__("Wed"),
__("Thu"),
__("Fri"),
__("Sat"),
__("Sunday"),
__("Monday"),
__("Tuesday"),
__("Wednesday"),
__("Thursday"),
__("Friday"),
__("Saturday"),
];
i18n.monthNames = [
__("Jan"),
__("Feb"),
__("Mar"),
__("Apr"),
__("May"),
__("Jun"),
__("Jul"),
__("Aug"),
__("Sep"),
__("Oct"),
__("Nov"),
__("Dec"),
__("January"),
__("February"),
__("March"),
__("April"),
__("May"),
__("June"),
__("July"),
__("August"),
__("September"),
__("October"),
__("November"),
__("December")
];
i18n.timeNames = [__("a"), __("p"), __("am"), __("pm"), __("A"), __("P"), __("AM"), __("PM")];