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
[](https://www.npmjs.com/package/@nuxtjs/dynamic-i18n)
4
4
@@ -7,8 +7,7 @@
7
7
This module automatically import your translate file from a specific provider.
* Google sheets, see example of file [here](https://docs.google.com/spreadsheets/d/1dBsD-EsKb1mHvq4P2Zm4DcOPK2szuxqkkvnTsmbkYhc/edit?usp=sharing)
@@ -35,13 +34,17 @@ This module automatically import your translate file from a specific provider.
35
34
| languages |**Required**|`[]`| Contain all the locales we want to import. |
36
35
| provider-key |**Required**|`''`| The identifier for the source of the data stored. |
37
36
| credentials |**Required**|`{}`| Configuration for the provider. |
38
-
|title| Optional |`'Translate'`|Title of the document. |
37
+
|id| Optional |None|id of the active document. Use gid for google sheet url to get active tab id|
39
38
| maxAge | Optional | `1000 * 60 * 60` | Max age of translate files (60 minutes), use 0 to disable it
40
39
| fallbackLocale | Optional |`'en'`| Default language if not founded from the store |
41
40
| localeNamespaceStore | Optional |`'i18n'`| Default namespace of i18n locale store. see example of store [here](https://github.com/nuxt/nuxt.js/blob/dev/examples/i18n/store/index.js)|
42
41
| outputFilePrefix | Optional |`'locale'`| Prefix of the output file like : {{outputFilePrefix}}-{{language}}.json. |
Dynamic i18n has been updated to work with the new version of [https://theoephraim.github.io/node-google-spreadsheet/#/](google-spreadsheet) and the `title` option to locate the tab has been replaced by `id` which is the `gid` identifier that you can get from the google sheet url query params `gid`.
0 commit comments