Maximum Characters Check logo
Maximum Characters Check BetaFree

Ensure your translations do not exceed a maximum character count.

Get

Requires Crowdin account

var maxChars = 100; // Define the maximum allowed number of characters

var result = {
  success: false
};

if (crowdin.contentType === 'text/plain') {
  var translation = crowdin.translation;
  var charCount = translation.length;

  if (charCount > maxChars) {
    result.message = 'The translation has too many characters: ' + charCount + ' (max allowed is ' + maxChars + ')';
    result.fixes = [];
  } else {
    result.success = true;
  }
} else {
  result.message = "Unsupported content type. It's recommended to use this QA check with .srt files only.";
  result.fixes = [];
}

return result;
Categories
Tags
Works with
  • Crowdin Enterprise
Details

Released on Jul 26, 2024

Updated on Jul 26, 2024

Published by Awesome Crowdin

Identifier:maximum-characters-check

Maximum Characters Check for Translations - Crowdin Store