debian-mirror-gitlab/app/assets/javascripts/diffs/i18n.js

50 lines
1.9 KiB
JavaScript
Raw Normal View History

2021-03-11 19:13:27 +05:30
import { __, s__ } from '~/locale';
2021-01-03 14:25:43 +05:30
2021-01-29 00:20:46 +05:30
export const GENERIC_ERROR = __('Something went wrong on our end. Please try again!');
2021-01-03 14:25:43 +05:30
export const DIFF_FILE_HEADER = {
optionsDropdownTitle: __('Options'),
2021-03-11 19:13:27 +05:30
fileReviewLabel: __('Viewed'),
fileReviewTooltip: __('Collapses this file (only for you) until its changed again.'),
2021-01-03 14:25:43 +05:30
};
2021-01-29 00:20:46 +05:30
export const DIFF_FILE = {
2021-03-11 19:13:27 +05:30
tooLarge: s__('MRDiffFile|Changes are too large to be shown.'),
blobView: s__('MRDiffFile|View file @ %{commitSha}'),
2021-01-29 00:20:46 +05:30
editInFork: __(
"You're not allowed to %{tag_start}edit%{tag_end} files in this project directly. Please fork this project, make your changes there, and submit a merge request.",
),
fork: __('Fork'),
cancel: __('Cancel'),
autoCollapsed: __('Files with large changes are collapsed by default.'),
expand: __('Expand file'),
};
2021-02-22 17:27:13 +05:30
export const SETTINGS_DROPDOWN = {
2021-04-17 20:07:23 +05:30
whitespace: __('Show whitespace changes'),
2021-02-22 17:27:13 +05:30
fileByFile: __('Show one file at a time'),
2021-09-04 01:27:46 +05:30
preferences: __('Preferences'),
2021-02-22 17:27:13 +05:30
};
2021-10-27 15:23:28 +05:30
export const CONFLICT_TEXT = {
both_modified: __('Conflict: This file was modified in both the source and target branches.'),
modified_source_removed_target: __(
'Conflict: This file was modified in the source branch, but removed in the target branch.',
),
modified_target_removed_source: __(
'Conflict: This file was removed in the source branch, but modified in the target branch.',
),
renamed_same_file: __(
'Conflict: This file was renamed differently in the source and target branches.',
),
removed_source_renamed_target: __(
'Conflict: This file was removed in the source branch, but renamed in the target branch.',
),
removed_target_renamed_source: __(
'Conflict: This file was renamed in the source branch, but removed in the target branch.',
),
both_added: __(
'Conflict: This file was added both in the source and target branches, but with different contents.',
),
};