Skip to content

Commit

Permalink
Adjust mapLanguage method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikuolan committed Dec 2, 2023
1 parent cc759bd commit 5e6f417
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Linker.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* License: GNU/GPLv2
* @see LICENSE.txt
*
* This file: PHPMailer-phpMussel linker (last modified: 2023.09.27).
* This file: PHPMailer-phpMussel linker (last modified: 2023.12.02).
*/

namespace phpMussel\PHPMailer;
Expand Down Expand Up @@ -269,9 +269,9 @@ public function __invoke(string $NotUsed, array $Data): bool
*/
private function mapLanguage(string $Language): string
{
if ($Language === 'zh') {
if ($Language === 'zh' || $Language === 'zh-CN' || $Language === 'zh-SG') {
$Language = 'zh_cn';
} elseif ($Language === 'zh-TW') {
} elseif ($Language === 'zh-TW' || $Language === 'zh-HK' || $Language === 'zh-MO') {
$Language = 'zh';
}
$Try = sprintf(
Expand Down

0 comments on commit 5e6f417

Please sign in to comment.