Skip to content

Commit

Permalink
Optimize the comment content of the translation script generated file.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengyangliu committed Dec 17, 2024
1 parent 311a038 commit 8b4642a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/i18n/update-translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ const generateTranslationsFile = async () => {
if (official) {
content = `// This file was automatically generated. Do not modify.\n`;
} else {
content = `// The en part of this file is automatically generated. Do not modify.\n`;
content = `// The "en" section of this file is automatically generated. Do not modify it.
// Other translations (e.g., "ru", "zh-cn", "zh-tw") can be modified manually.
// However, running automation scripts will delete non-"en" translations.
// Make sure to back up any manual changes before running scripts.\n`;
}
content += `/* eslint-disable func-style */
/* eslint-disable require-jsdoc */
Expand Down

0 comments on commit 8b4642a

Please sign in to comment.