Skip to content

Commit

Permalink
Add strings for error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
MisRob committed May 5, 2023
1 parent 6a82930 commit 0cc6b70
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,11 @@
fileSize: 'Size',
// Validation strings
/* eslint-disable kolibri/vue-no-unused-translations */
noLearningActivityError: 'Missing learning activity',
noCompletionCriteriaError: 'Missing completion criteria',
noDurationError: 'Missing duration',
/* eslint-enable kolibri/vue-no-unused-translations */
noLicenseError: 'Missing license',
noCopyrightHolderError: 'Missing copyright holder',
noLicenseDescriptionError: 'Missing license description',
Expand Down
7 changes: 7 additions & 0 deletions contentcuration/contentcuration/frontend/shared/mixins.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ const statusStrings = createTranslator('StatusStrings', {
noStorageError: 'Not enough space',
});

export const validationStrings = createTranslator('ValidationStrings', () => {
{
('Missing required information');
('An error message displayed when some information required before publishing a channel is missing, for example when a resource has no license set.');
}
});

export const fileStatusMixin = {
mixins: [fileSizeMixin],
computed: {
Expand Down

0 comments on commit 0cc6b70

Please sign in to comment.