Skip to content

Commit

Permalink
Add main_locale
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Oct 5, 2023
1 parent c500ee7 commit 4b71efe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/dashboard-client/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
"attributes": [
"name",
"internal_subdomain",
"main_locale",
"template"
],
"relationships": []
Expand Down
4 changes: 4 additions & 0 deletions packages/dashboard-client/src/generated/SchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,10 @@ export type SiteCreateSchema = {
* Internal project subdomain
*/
internal_subdomain?: string;
/**
* Main locale for the project
*/
main_locale?: string;
/**
* Site template
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/dashboard-client/src/generated/SimpleSchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,10 @@ export type SiteCreateSchema = {
* Internal project subdomain
*/
internal_subdomain?: string;
/**
* Main locale for the project
*/
main_locale?: string;
/**
* Site template
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard-client/src/generated/resources/Site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default class Site extends BaseResource {
return this.rawCreate(
Utils.serializeRequestBody<SchemaTypes.SiteCreateSchema>(body, {
type: 'site',
attributes: ['name', 'internal_subdomain', 'template'],
attributes: ['name', 'internal_subdomain', 'main_locale', 'template'],
relationships: [],
}),
).then((body) =>
Expand Down

0 comments on commit 4b71efe

Please sign in to comment.