Extract weblate types, constants, logic
This commit is contained in:
23
tools/scripts/weblate/Weblate.constants.ts
Normal file
23
tools/scripts/weblate/Weblate.constants.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (C) Contributors to the Suwayomi project
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import { WeblateChangeActions } from '@/../tools/scripts/weblate/Weblate.types';
|
||||
|
||||
export const creditRelevantActions: WeblateChangeActions[] = [
|
||||
WeblateChangeActions.TRANSLATION_CHANGED,
|
||||
WeblateChangeActions.TRANSLATION_ADDED,
|
||||
WeblateChangeActions.TRANSLATION_REVERTED,
|
||||
WeblateChangeActions.TRANSLATION_UPLOADED,
|
||||
WeblateChangeActions.TRANSLATION_REMOVED,
|
||||
WeblateChangeActions.MARKED_FOR_EDIT,
|
||||
];
|
||||
|
||||
export const TRANSLATION_CHANGELOG_YARG_OPTIONS_DEFAULT = {
|
||||
requiredContributionCount: 10,
|
||||
keepKnownContributors: true,
|
||||
};
|
||||
Reference in New Issue
Block a user