Skip to content

Commit 6e6d650

Browse files
Merge pull request #6820 from nextcloud/backport/6816/stable29
[stable29] fix: showing RichWorkspace for non-English language
2 parents 16f1e85 + ef10730 commit 6e6d650

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/RichWorkspace.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ import { generateOcsUrl } from '@nextcloud/router'
4848
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
4949
import getEditorInstance from '../components/Editor.singleton.js'
5050
import RichTextReader from '../components/RichTextReader.vue'
51+
import { loadState } from '@nextcloud/initial-state'
5152
5253
const IS_PUBLIC = !!(document.getElementById('isPublic'))
5354
const WORKSPACE_URL = generateOcsUrl('apps/text' + (IS_PUBLIC ? '/public' : '') + '/workspace', 2)
54-
const SUPPORTED_STATIC_FILENAMES = ['Readme.md', 'README.md', 'readme.md']
55+
const descriptionFile = t('text', 'Readme') + '.' + loadState('text', 'default_file_extension')
56+
const SUPPORTED_STATIC_FILENAMES = [descriptionFile, 'Readme.md', 'README.md', 'readme.md']
5557
5658
export default {
5759
name: 'RichWorkspace',

0 commit comments

Comments
 (0)