You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 17, 2019. It is now read-only.
-`I18nLoader: (ctx: Context) => ({locale: string, translations: Object<string, string>})` - A function that provides translations
190
-
-`ctx: FusionContext` - A [FusionJS context](https://github.com/fusionjs/fusion-core#context) object.
191
-
-`fetch` - a [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation
189
+
##### Optional dependencies
190
+
191
+
Name | Type | Default | Description
192
+
-|-|-|-
193
+
`I18nLoaderToken` | `{from: (ctx: Context) => ({locale: string, translations: Object<string, string>})}` | `createI18nLoader()` | A function that provides translations. `ctx: {headers: {'accept-language': string}}` is a Koa context object. Server-side only.
194
+
`HydrationStateToken` | `{chunks: Array, translations: Object}` | `undefined` | Sets the hydrated state in the client, and can be useful for testing purposes. Browser only.
0 commit comments