← All @molecule/* packages · App templates
@molecule/app-locales-iapTranslations · i18n · App (browser) · v1.0.1 · Apache-2.0
Translations for molecule in-app purchase components in 79 languages
npm install @molecule/app-locales-iap@molecule/app-locales-iap carries the translations for the i18n package on the app (browser) side. Install it beside that package and the i18n core picks the strings up by locale.
import { af, am, ar } from '@molecule/app-locales-iap'
import type { IapTranslationKey, IapTranslations } from '@molecule/app-locales-iap'Works with: @molecule/app-i18n
Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit
src/index.tsJSDoc, not this file.
Translations for molecule in-app purchase components in 79 languages
Provides translations for the @molecule/app-iap package which has 32 translation keys.
79 languages supported: af, am, ar, az, be, bg, bn, bs, ca, cs, cy, da, de, el, en, es, et, eu, fa, fi, fil, fr, ga, gl, gu, ha, he, hi, hr, hu, hy, id, ig, is, it, ja, ka, kk, km, kn, ko, ky, lo, lt, lv, mk, ml, mn, mr, ms, mt, my, nb, ne, nl, pa, pl, pt, ro, ru, si, sk, sl, sq, sr, sv, sw, ta, te, th, tr, uk, ur, uz, vi, yo, zh, zh-TW, zu.
import { af, am, ar } from '@molecule/app-locales-iap'
import type { IapTranslationKey, IapTranslations } from '@molecule/app-locales-iap'
In an mlcl-scaffolded app, installed locale bonds are registered automatically by the app's i18n setup at startup — installing this package is normally all you need. To register manually (or in a custom app), pass the whole module to registerLocaleModule from @molecule/app-i18n at startup:
import { registerLocaleModule } from '@molecule/app-i18n'
import * as locales from '@molecule/app-locales-iap'
registerLocaleModule(locales)
en.ts is the canonical key set — every other language file mirrors its keys. To change or add strings, edit the locale files in this package (add new keys to en.ts first) or merge overrides at runtime with addTranslations(locale, map). Never hand-write translations inline in feature code: features call t(key, values, { defaultValue }) and THIS bond supplies the translations — inline strings bypass every other language.
| Key | English |
|---|---|
iap.error.E_UNKNOWN | An unknown error occurred. |
iap.error.E_SETUP | Failed to set up in-app purchases. |
iap.error.E_LOAD | Failed to load products. |
iap.error.E_PURCHASE | Purchase failed. |
iap.error.E_CANCELLED | Purchase was cancelled. |
iap.error.E_FINISH | Failed to finish transaction. |
iap.error.E_VERIFICATION | Failed to verify purchase. |
iap.error.E_RESTORE | Failed to restore purchases. |
iap.error.E_NOT_AVAILABLE | In-app purchases are not available. |
iap.error.E_ALREADY_OWNED | You already own this item. |
iap.error.E_NOT_OWNED | You do not own this item. |
iap.error.E_DEFERRED | Purchase requires approval. |
iap.error.E_INVALID_PRODUCT | Invalid product. |
iap.error.E_NETWORK | Network error. |
iap.error.0 | An unknown error occurred. |
iap.error.E_CLIENT_INVALID | Client is not allowed to issue the request. |
iap.error.E_PAYMENT_CANCELLED | User cancelled the request. |
iap.error.E_PAYMENT_INVALID | The purchase identifier was invalid. |
iap.error.E_PAYMENT_NOT_ALLOWED | Device not allowed to make purchases. |
iap.error.E_STORE_PRODUCT_NOT_AVAILABLE | Product not available in current store. |
iap.error.E_CLOUD_SERVICE_PERMISSION_DENIED | Cloud service permission denied. |
iap.error.E_CLOUD_SERVICE_NETWORK_CONNECTION_FAILED | Cloud service network failed. |
iap.error.E_CLOUD_SERVICE_REVOKED | Cloud service was revoked. |
iap.error.-1 | Service disconnected. |
iap.error.1 | User cancelled. |
iap.error.2 | Service unavailable. |
iap.error.3 | Billing unavailable. |
iap.error.4 | Item unavailable. |
iap.error.5 | Developer error. |
iap.error.6 | Error. |
iap.error.7 | Item already owned. |
iap.error.8 | Item not owned. |
@molecule/app-iap