Skip to content

Commit

Permalink
Merge pull request #6816 from nextcloud/fix/richworkspace-non-english
Browse files Browse the repository at this point in the history
fix: showing RichWorkspace for non-English language
  • Loading branch information
juliusknorr authored Jan 3, 2025
2 parents c4411b1 + 50d850a commit 8a90725
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 @@ -32,10 +32,12 @@ import { subscribe, unsubscribe } from '@nextcloud/event-bus'
import { getSharingToken, isPublicShare } from '@nextcloud/sharing/public'
import getEditorInstance from '../components/Editor.singleton.js'
import RichTextReader from '../components/RichTextReader.vue'
import { loadState } from '@nextcloud/initial-state'

const IS_PUBLIC = isPublicShare()
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 8a90725

Please sign in to comment.