|
|
@ -44,19 +44,18 @@ class Lang { |
|
|
|
case 'en-IE': |
|
|
|
case 'en-IE': |
|
|
|
case 'en-US': |
|
|
|
case 'en-US': |
|
|
|
default: |
|
|
|
default: |
|
|
|
|
|
|
|
|
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.en?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.en?.[str]}\t:`; |
|
|
|
|
|
|
|
|
|
|
|
case 'zh': |
|
|
|
case 'zh': |
|
|
|
case 'zh-Hans': |
|
|
|
case 'zh-Hans': |
|
|
|
case 'zh-Hant': |
|
|
|
|
|
|
|
case 'zh-CN': |
|
|
|
case 'zh-CN': |
|
|
|
case 'zh-HK': |
|
|
|
|
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.['zh-cn']?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.['zh-cn']?.[str]}\t:`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'zh-Hant': |
|
|
|
|
|
|
|
case 'zh-HK': |
|
|
|
case 'zh-TW': |
|
|
|
case 'zh-TW': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.['zh-tw']?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.['zh-tw']?.[str]}\t:`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'de': |
|
|
|
case 'de': |
|
|
|
case 'de-DE': |
|
|
|
case 'de-DE': |
|
|
|
case 'de-CH': |
|
|
|
case 'de-CH': |
|
|
@ -79,6 +78,7 @@ class Lang { |
|
|
|
case 'es-US': |
|
|
|
case 'es-US': |
|
|
|
case 'es-VE': |
|
|
|
case 'es-VE': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.es?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.es?.[str]}\t:`; |
|
|
|
|
|
|
|
|
|
|
|
case 'fi': |
|
|
|
case 'fi': |
|
|
|
case 'fi-FI': |
|
|
|
case 'fi-FI': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.fi?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.fi?.[str]}\t:`; |
|
|
@ -89,6 +89,7 @@ class Lang { |
|
|
|
case 'fr-BE': |
|
|
|
case 'fr-BE': |
|
|
|
case 'fr-CH': |
|
|
|
case 'fr-CH': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.fr?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.fr?.[str]}\t:`; |
|
|
|
|
|
|
|
|
|
|
|
case 'it': |
|
|
|
case 'it': |
|
|
|
case 'it-IT': |
|
|
|
case 'it-IT': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.it?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.it?.[str]}\t:`; |
|
|
@ -96,6 +97,7 @@ class Lang { |
|
|
|
case 'ja': |
|
|
|
case 'ja': |
|
|
|
case 'ja-JP': |
|
|
|
case 'ja-JP': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.ja?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.ja?.[str]}\t:`; |
|
|
|
|
|
|
|
|
|
|
|
case 'ko': |
|
|
|
case 'ko': |
|
|
|
case 'ko-KR': |
|
|
|
case 'ko-KR': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.ko?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.ko?.[str]}\t:`; |
|
|
@ -109,14 +111,12 @@ class Lang { |
|
|
|
case 'pt': |
|
|
|
case 'pt': |
|
|
|
case 'pt-BR': |
|
|
|
case 'pt-BR': |
|
|
|
case 'pt-PT': |
|
|
|
case 'pt-PT': |
|
|
|
|
|
|
|
|
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.pt?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.pt?.[str]}\t:`; |
|
|
|
|
|
|
|
|
|
|
|
case 'ru': |
|
|
|
case 'ru': |
|
|
|
case 'ru-RU': |
|
|
|
case 'ru-RU': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.ru?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.ru?.[str]}\t:`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'sv': |
|
|
|
case 'sv': |
|
|
|
case 'sv-SE': |
|
|
|
case 'sv-SE': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.sv?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.sv?.[str]}\t:`; |
|
|
@ -130,12 +130,10 @@ class Lang { |
|
|
|
case 'tl-PH': |
|
|
|
case 'tl-PH': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.tl?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.tl?.[str]}\t:`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'tr': |
|
|
|
case 'tr': |
|
|
|
case 'tr-TR': |
|
|
|
case 'tr-TR': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.tr?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.tr?.[str]}\t:`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'uk': |
|
|
|
case 'uk': |
|
|
|
case 'uk-UA': |
|
|
|
case 'uk-UA': |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.uk?.[str]}\t:`; |
|
|
|
return `${SMILEY_PREFIX[str]} ${formattedTranslate?.uk?.[str]}\t:`; |
|
|
@ -159,6 +157,7 @@ export { |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Naveen MR <oof1lab@gmail.com> |
|
|
|
* @author Naveen MR <oof1lab@gmail.com> |
|
|
|
* @author Pranav C Balan <pranavxc@gmail.com> |
|
|
|
* @author Pranav C Balan <pranavxc@gmail.com> |
|
|
|
|
|
|
|
* @author Wing-Kam Wong <wingkwong.code@gmail.com> |
|
|
|
* |
|
|
|
* |
|
|
|
* @license GNU AGPL version 3 or any later version |
|
|
|
* @license GNU AGPL version 3 or any later version |
|
|
|
* |
|
|
|
* |
|
|
|