Skip to content

Commit

Permalink
Merge pull request #6822 from nextcloud/backport/6816/stable28
Browse files Browse the repository at this point in the history
[stable28] fix: showing RichWorkspace for non-English language
  • Loading branch information
luka-nextcloud authored Jan 6, 2025
2 parents 7dedf05 + e325bc3 commit 08b6649
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/RichWorkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ import { generateOcsUrl } from '@nextcloud/router'
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
import getEditorInstance from '../components/Editor.singleton.js'
import RichTextReader from '../components/RichTextReader.vue'
import { loadState } from '@nextcloud/initial-state'

const IS_PUBLIC = !!(document.getElementById('isPublic'))
const WORKSPACE_URL = generateOcsUrl('apps/text' + (IS_PUBLIC ? '/public' : '') + '/workspace', 2)
const SUPPORTED_STATIC_FILENAMES = ['Readme.md', 'README.md', 'readme.md']
const descriptionFile = t('text', 'Readme') + '.' + loadState('text', 'default_file_extension')
const SUPPORTED_STATIC_FILENAMES = [descriptionFile, 'Readme.md', 'README.md', 'readme.md']

export default {
name: 'RichWorkspace',
Expand Down

0 comments on commit 08b6649

Please sign in to comment.