Skip to content

Commit 4039e95

Browse files
committed
Fix editor preference localizations
1 parent 9e91241 commit 4039e95

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/editor/src/browser/editor-preferences.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { nls } from '@theia/core/lib/common/nls';
2929
import { environment } from '@theia/core';
3030
import { editorGeneratedPreferenceProperties, GeneratedEditorPreferences } from './editor-generated-preference-schema';
3131

32-
/* eslint-disable @theia/localization-check,max-len,no-null/no-null */
32+
/* eslint-disable max-len,no-null/no-null */
3333
// #region src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.ts
3434

3535
const codeActionsContributionSchema: PreferenceSchema['properties'] = {
@@ -53,7 +53,7 @@ const codeActionsContributionSchema: PreferenceSchema['properties'] = {
5353
}
5454
],
5555
default: {},
56-
description: nls.localizeByDefault('Code action kinds to be run on save.'),
56+
markdownDescription: nls.localizeByDefault('Run Code Actions for the editor on save. Code Actions must be specified and the editor must not be shutting down. Example: `"source.organizeImports": "explicit" `'),
5757
scope: 'language-overridable',
5858
}
5959
};
@@ -82,7 +82,7 @@ const fileContributionSchema: PreferenceSchema['properties'] = {
8282
'enumDescriptions': [
8383
nls.localizeByDefault('Format the whole file.'),
8484
nls.localizeByDefault('Format modifications (requires source control).'),
85-
nls.localize('theia/editor/editor.formatOnSaveMode.modificationsIfAvailable', "Will attempt to format modifications only (requires source control). If source control can't be used, then the whole file will be formatted."),
85+
nls.localizeByDefault("Will attempt to format modifications only (requires source control). If source control can't be used, then the whole file will be formatted."),
8686
],
8787
'markdownDescription': nls.localizeByDefault('Controls if format on save formats the whole file or only modifications. Only applies when `#editor.formatOnSave#` is enabled.'),
8888
'scope': PreferenceScope.fromString('language-overridable'),
@@ -109,13 +109,13 @@ const fileContributionSchema: PreferenceSchema['properties'] = {
109109
'type': 'string',
110110
'enum': ['off', 'afterDelay', 'onFocusChange', 'onWindowChange'],
111111
'markdownEnumDescriptions': [
112-
nls.localize('theia/editor/files.autoSave.off', 'An editor with changes is never automatically saved.'),
113-
nls.localize('theia/editor/files.autoSave.afterDelay', 'An editor with changes is automatically saved after the configured `#files.autoSaveDelay#`.'),
114-
nls.localize('theia/editor/files.autoSave.onFocusChange', 'An editor with changes is automatically saved when the editor loses focus.'),
115-
nls.localize('theia/editor/files.autoSave.onWindowChange', 'An editor with changes is automatically saved when the window loses focus.')
112+
nls.localizeByDefault('An editor with changes is never automatically saved.'),
113+
nls.localizeByDefault('An editor with changes is automatically saved after the configured `#files.autoSaveDelay#`.'),
114+
nls.localizeByDefault('An editor with changes is automatically saved when the editor loses focus.'),
115+
nls.localizeByDefault('An editor with changes is automatically saved when the window loses focus.')
116116
],
117117
'default': environment.electron.is() ? 'off' : 'afterDelay',
118-
'markdownDescription': nls.localize('theia/editor/files.autoSave', 'Controls [auto save](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save) of editors that have unsaved changes.', 'off', 'afterDelay', 'onFocusChange', 'onWindowChange', 'afterDelay')
118+
'markdownDescription': nls.localizeByDefault('Controls [auto save](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save) of editors that have unsaved changes.', 'off', 'afterDelay', 'onFocusChange', 'onWindowChange', 'afterDelay')
119119
},
120120
'files.autoSaveDelay': {
121121
'type': 'number',

0 commit comments

Comments
 (0)