babel-plugin-opencc
v0.0.3
Published
transform string using opencc in babel
Readme
Usage
{
"plugins": [
[
"babel-plugin-opencc",
{
translation: "hongKongToSimplified"
}
]
]
}Supported translation
| Type | Translation |
| ------------------------------- | ----------------------------------------- |
| hongKongToSimplified | Hong Kong to Simplified Chinese |
| simplifiedToHongKong | Simplified Chinese to Hong Kong |
| simplifiedToTraditional | Simplified Chinese to Traditional Chinese |
| simplifiedToTaiwan | Simplified Chinese to Taiwan |
| simplifiedToTaiwanWithPhrases | Simplified Chinese to Taiwan with phrases |
| traditionalToHongKong | Traditional Chinese to Hong Kong |
| traditionalToSimplified | Traditional Chinese to Simplified Chinese |
| traditionalToTaiwan | Traditional Chinese to Taiwan |
| taiwanToSimplified | Taiwan to Simplified Chinese |
| taiwanToSimplifiedWithPhrases | Taiwan to Simplified Chinese with phrases |
For details of the translation, please refer to node-opencc.
