Categories
Keeping copyright notices intact across translations
Requires Crowdin account
var sourceCopyrightExists = /\(c\)|©|Copyright/i.test(crowdin.source);
var translationCopyrightExists = /\(c\)|©|Copyright/i.test(crowdin.translation);
var result = {
success: sourceCopyrightExists === translationCopyrightExists
};
if (!result.success) {
result.message = 'Copyright notice in the source and translation do not match';
}
return result;