@webiny/api-headless-cms 5.19.0-beta.5 → 5.19.1

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.
@@ -42,7 +42,7 @@ const createContentCruds = params => {
42
42
  }
43
43
 
44
44
  const getLocale = () => {
45
- return context.i18n.getCurrentLocale();
45
+ return context.cms.getLocale();
46
46
  };
47
47
 
48
48
  const getIdentity = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-headless-cms",
3
- "version": "5.19.0-beta.5",
3
+ "version": "5.19.1",
4
4
  "main": "index.js",
5
5
  "keywords": [
6
6
  "cms:base"
@@ -21,23 +21,23 @@
21
21
  "@babel/runtime": "7.16.3",
22
22
  "@commodo/fields": "1.1.2-beta.20",
23
23
  "@graphql-tools/schema": "7.1.5",
24
- "@webiny/api-file-manager": "5.19.0-beta.5",
25
- "@webiny/api-i18n": "5.19.0-beta.5",
26
- "@webiny/api-i18n-content": "5.19.0-beta.5",
27
- "@webiny/api-i18n-ddb": "5.19.0-beta.5",
28
- "@webiny/api-security": "5.19.0-beta.5",
29
- "@webiny/api-tenancy": "5.19.0-beta.5",
30
- "@webiny/api-upgrade": "5.19.0-beta.5",
31
- "@webiny/error": "5.19.0-beta.5",
32
- "@webiny/handler": "5.19.0-beta.5",
33
- "@webiny/handler-aws": "5.19.0-beta.5",
34
- "@webiny/handler-db": "5.19.0-beta.5",
35
- "@webiny/handler-graphql": "5.19.0-beta.5",
36
- "@webiny/handler-http": "5.19.0-beta.5",
37
- "@webiny/plugins": "5.19.0-beta.5",
38
- "@webiny/pubsub": "5.19.0-beta.5",
39
- "@webiny/utils": "5.19.0-beta.5",
40
- "@webiny/validation": "5.19.0-beta.5",
24
+ "@webiny/api-file-manager": "5.19.1",
25
+ "@webiny/api-i18n": "5.19.1",
26
+ "@webiny/api-i18n-content": "5.19.1",
27
+ "@webiny/api-i18n-ddb": "5.19.1",
28
+ "@webiny/api-security": "5.19.1",
29
+ "@webiny/api-tenancy": "5.19.1",
30
+ "@webiny/api-upgrade": "5.19.1",
31
+ "@webiny/error": "5.19.1",
32
+ "@webiny/handler": "5.19.1",
33
+ "@webiny/handler-aws": "5.19.1",
34
+ "@webiny/handler-db": "5.19.1",
35
+ "@webiny/handler-graphql": "5.19.1",
36
+ "@webiny/handler-http": "5.19.1",
37
+ "@webiny/plugins": "5.19.1",
38
+ "@webiny/pubsub": "5.19.1",
39
+ "@webiny/utils": "5.19.1",
40
+ "@webiny/validation": "5.19.1",
41
41
  "boolean": "3.1.4",
42
42
  "commodo-fields-object": "1.0.6",
43
43
  "dataloader": "2.0.0",
@@ -54,10 +54,10 @@
54
54
  "@babel/core": "^7.5.5",
55
55
  "@babel/preset-env": "^7.5.5",
56
56
  "@babel/preset-flow": "^7.0.0",
57
- "@webiny/api-security-so-ddb": "^5.19.0-beta.5",
58
- "@webiny/api-tenancy-so-ddb": "^5.19.0-beta.5",
59
- "@webiny/cli": "^5.19.0-beta.5",
60
- "@webiny/project-utils": "^5.19.0-beta.5",
57
+ "@webiny/api-security-so-ddb": "^5.19.1",
58
+ "@webiny/api-tenancy-so-ddb": "^5.19.1",
59
+ "@webiny/cli": "^5.19.1",
60
+ "@webiny/project-utils": "^5.19.1",
61
61
  "apollo-graphql": "^0.4.1",
62
62
  "get-yarn-workspaces": "^1.0.2",
63
63
  "graphql": "^14.6.0",
@@ -77,5 +77,5 @@
77
77
  "build": "yarn webiny run build",
78
78
  "watch": "yarn webiny run watch"
79
79
  },
80
- "gitHead": "839188911bbaee4a596724c729c0a78f681fa614"
80
+ "gitHead": "1424145d10add470e70fba9c44225656894e0028"
81
81
  }
@@ -17,7 +17,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
17
17
 
18
18
  var _default = () => {
19
19
  return new _ContextPlugin.ContextPlugin(context => {
20
- const locale = context.i18n.getCurrentLocale();
20
+ const locale = context.i18nContent.getLocale();
21
21
  context.cms = _objectSpread(_objectSpread({}, context.cms || {}), {}, {
22
22
  locale: locale ? locale.code : "en-US",
23
23
 
@@ -42,7 +42,7 @@ const createAdminCruds = params => {
42
42
  }
43
43
 
44
44
  const getLocale = () => {
45
- return context.i18n.getCurrentLocale();
45
+ return context.cms.getLocale();
46
46
  };
47
47
 
48
48
  const getIdentity = () => {