Skip to content

Commit

Permalink
make nextblock have default lang
Browse files Browse the repository at this point in the history
  • Loading branch information
dobri1408 committed Jun 13, 2023
1 parent e5d0e65 commit 47b54cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/NextCloud/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,9 @@ export const VideoBlockSchema = (props) => {
properties: {
language: {
title: props.intl.formatMessage(messages.language),
choices: [
...(config?.settings?.eea?.languages?.map((el) => [
el.code,
el.name,
]) || []),
],
choices:
config?.blocks?.blocksConfig?.nextCloudVideo?.subtitlesLanguages ||
[],
},
file: {
title: props.intl.formatMessage(messages.file),
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const applyConfig = (config) => {
icon: videoSVG,
group: 'media',
view: NextCloudVideoView,
subtitlesLanguages: [['en', 'English']],
edit: NextCloudVideoEdit,
schema: VideoBlockSchema,
restricted: false,
Expand Down

0 comments on commit 47b54cd

Please sign in to comment.