From 28626113b7278c05002d89882e7b674e90da7917 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Mon, 16 May 2022 10:54:31 +1000 Subject: [PATCH] ci: crowdin commit lint etc (#3372) --- crowdin.yml | 6 +----- docs/contributing/commitmsg-guidelines.md | 1 + web/.commitlintrc.js | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/crowdin.yml b/crowdin.yml index 5f73da9ad..9ed55e6ea 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,12 +1,8 @@ --- pull_request_title: "i18n: update translations" files: - # - source: /internal/server/locales/en/* - # translation: /internal/server/locales/%locale%/%original_file_name% - # skip_untranslated_strings: true - # skip_untranslated_files: true - source: /internal/server/locales/en/* - translation: /internal/server/locales/%locale_with_underscore%/%original_file_name% + translation: /internal/server/locales/%two_letters_code%/%original_file_name% skip_untranslated_strings: true skip_untranslated_files: true ... diff --git a/docs/contributing/commitmsg-guidelines.md b/docs/contributing/commitmsg-guidelines.md index 29166625d..670734873 100644 --- a/docs/contributing/commitmsg-guidelines.md +++ b/docs/contributing/commitmsg-guidelines.md @@ -58,6 +58,7 @@ The `` and `` fields are mandatory, the `()` field is opti * **docs** Documentation only changes * **feat** A new feature * **fix** A bug fix +* **i18n** Internationalization changes * **perf** A code change that improves performance * **refactor** A code change that neither fixes a bug nor adds a feature * **release** Releasing a new version of Authelia diff --git a/web/.commitlintrc.js b/web/.commitlintrc.js index bc45e9e45..d788032f2 100644 --- a/web/.commitlintrc.js +++ b/web/.commitlintrc.js @@ -8,7 +8,7 @@ module.exports = { "type-enum": [ 2, "always", - ["build", "ci", "docs", "feat", "fix", "perf", "refactor", "release", "revert", "test"], + ["build", "ci", "docs", "feat", "fix", "i18n", "perf", "refactor", "release", "revert", "test"], ], "scope-enum": [ 2,