JSPM

appwrite-i18n

0.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q21013F

    Package Exports

    • appwrite-i18n
    • appwrite-i18n/dist/appwrite-i18n.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (appwrite-i18n) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    说明

    Appwrite的错误返回的翻译, 当前仅有zh-CN翻译。

    使用

    npm install appwrite-i18n

    import Translation from 'appwrite-i18n'
    
    const translation = new Translation('zh-CN')
    
    try {
      // appwrite api
    } catch (error) {
      const result = translation.parse(error.type)
    }