We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a93dca commit 1fda253Copy full SHA for 1fda253
lib/stack/contentType/entry/index.js
@@ -265,6 +265,22 @@ export function Entry (http, data) {
265
throw error(err)
266
}
267
268
+ this.locales = async () => {
269
+ const headers = {}
270
+ if (this.stackHeaders) {
271
+ headers.headers = this.stackHeaders
272
+ }
273
+ try {
274
+ const response = await http.get(`${this.urlPath}/locales`, headers)
275
+ if (response.data) {
276
+ return response.data
277
+ } else {
278
+ throw error(response)
279
280
+ } catch (err) {
281
+ throw error(err)
282
283
284
} else {
285
/**
286
* @description The Create an entry call creates a new entry for the selected content type.
0 commit comments