Files
homepage/docs/en-gb/blog/contents/gitlab-ops.md
T
siujamo dbaf28ad98 feat: add tags to articles, full i18n coverage, and Tailwind CSS setup
- Add tag frontmatter to all 6 blog articles (3 articles × 2 locales)
- Complete i18n.json with all 26 text keys for en-gb and zh-hans
- Install and configure Tailwind CSS v4 with PostCSS
- Create Tags component using Tailwind utility classes
- Inject Tags into DocLayout via theme override
- Fix zh-hans homepage icon extension
2026-05-20 03:39:59 -05:00

1.6 KiB

title, tags
title tags
GitLab Operations
gitlab
devops

Setting the Default Language to Chinese in GitLab

GitLab filters out languages with less than 90% translation coverage via the SWITCHER_MINIMUM_TRANSLATION_LEVEL variable in the code. Simplified Chinese sits at 84% and Traditional Chinese at 83%.

Navigate to /path/to/gitlab/embedded/service/gitlab-rails/app/helpers/preferred_language_switcher_helper.rb and modify the code as follows:

- SWITCHER_MINIMUM_TRANSLATION_LEVEL = 90
+ SWITCHER_MINIMUM_TRANSLATION_LEVEL = 80

Then restart GitLab with gitlab-ctl restart.

Adding ICP Filing Information to the Homepage

Navigate to /path/to/gitlab/embedded/service/gitlab-rails/app/views/devise/shared/_footer.html.haml and add the following:

+ = link_to _("Your ICP Filing Number"), "https://beian.miit.gov.cn/", target: '_blank', class: 'text-nowrap', rel: 'noopener noreferrer'

Upgrading GitLab

Downloading the GitLab CE Package

Download the deb package from the GitLab Package page and transfer it to the server using scp or a similar tool.

Stopping Memory-Intensive Services

gitlab-ctl stop puma
gitlab-ctl stop sidekiq

Running a Backup

# Example: skip build artefacts and container registry, backing up only the database and repositories
sudo gitlab-backup create SKIP=artifacts,registry

Installing

sudo dpkg -i gitlab-package.deb