Replace sentence-like wording from yt notifications with predictable, readable-at-a-glance text.
< Обсуждения Change notification wording
我想使用中文,但是失敗了zh-Hant-TWzh-Hant------ const langs = { // The span stuff in the regexes prevents a bug where the notification text would get replaced recursively // The key must correspond to the lang attribute on the html tag "zh-Hant": { notifTitleText: "通知", video: /(?:.*<\/span>)?(?.*?) 上傳了新影片: (?.*)/, live: /(?:.*<\/span>)?(?<channel>.*?) 正在直播:(?<title>.*)/, premiere: /(?:.*<\/span>)?(?<channel>.*?) 正在首播: (?<title>.*)/, commentReply: /(?:.*<\/span>)?(?<user>.*?) 回覆: (?<comment>.*)/, commentLike: /(?:.*<\/span>)?👍 有人喜歡妳的留言: (?<comment>.*)/, }, };
Войдите, чтобы ответить.
我想使用中文,但是失敗了
zh-Hant-TW
zh-Hant
------
const langs = {
// The span stuff in the regexes prevents a bug where the notification text would get replaced recursively
// The key must correspond to the lang attribute on the html tag
"zh-Hant": {
notifTitleText: "通知",
video: /(?:.*<\/span>)?(?.*?) 上傳了新影片: (?.*)/,
live: /(?:.*<\/span>)?(?<channel>.*?) 正在直播:(?<title>.*)/,
premiere: /(?:.*<\/span>)?(?<channel>.*?) 正在首播: (?<title>.*)/,
commentReply: /(?:.*<\/span>)?(?<user>.*?) 回覆: (?<comment>.*)/,
commentLike: /(?:.*<\/span>)?👍 有人喜歡妳的留言: (?<comment>.*)/,
},
};