@meterbox/react 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.js CHANGED
@@ -15,6 +15,10 @@
15
15
  * with the tenant's branding (GET /v1/settings/branding); `theme` is the
16
16
  * --mbx-* CSS variables they read, for matching your own elements.
17
17
  *
18
+ * Language: `<LocaleProvider locale messages>` translates them (English,
19
+ * Spanish, French and German built in; `messages` overrides any string or
20
+ * adds a language) and formats dates and amounts for `locale`.
21
+ *
18
22
  * Re-exports `@meterbox/node` for convenience: `import { plans } from
19
23
  * '@meterbox/react'` works the same as importing the SDK directly.
20
24
  */
@@ -38,6 +42,7 @@ const TrialBanner = require("./TrialBanner");
38
42
  const CheckoutButton = require("./CheckoutButton");
39
43
  const BillingDetailsButton = require("./BillingDetailsButton");
40
44
  const { BrandingProvider, useBranding, brandingVars, logoUrl } = require("./branding");
45
+ const { LocaleProvider, useI18n } = require("./i18n");
41
46
  const theme = require("./theme");
42
47
 
43
48
  module.exports = {
@@ -60,6 +65,8 @@ module.exports = {
60
65
  useBranding,
61
66
  brandingVars,
62
67
  logoUrl,
68
+ LocaleProvider,
69
+ useI18n,
63
70
  theme,
64
71
  sdk,
65
72
  MeterboxClient: sdk.MeterboxClient,