Add comment about languages

This commit is contained in:
dangered wolf 2024-01-02 19:48:08 -05:00
parent 147ea4aadd
commit b841fc6013
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -31,6 +31,7 @@ export const translateStatus = async (
/* Clean up language codes so we can use them with Twitter API */ /* Clean up language codes so we can use them with Twitter API */
switch (language) { switch (language) {
/* Twitter does not accept plain zh, requires either zh-cn or zh-tw. https://github.com/FixTweet/FxTwitter/issues/580 */
case 'zh': case 'zh':
case 'cn': case 'cn':
language = 'zh-cn'; language = 'zh-cn';