@codingame/monaco-vscode-localization-service-override 21.3.2 → 21.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-localization-service-override",
3
- "version": "21.3.2",
3
+ "version": "21.3.3",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - localization service-override",
6
6
  "keywords": [],
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "21.3.2",
19
- "@codingame/monaco-vscode-api": "21.3.2"
18
+ "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "21.3.3",
19
+ "@codingame/monaco-vscode-api": "21.3.3"
20
20
  },
21
21
  "main": "index.js",
22
22
  "module": "index.js",
@@ -17,7 +17,7 @@ class BaseLocalizationWorkbenchContribution extends Disposable {
17
17
  extensionPoint: 'localizations',
18
18
  defaultExtensionKind: ['ui', 'workspace'],
19
19
  jsonSchema: {
20
- description: ( localize(8060, "Contributes localizations to the editor")),
20
+ description: ( localize(8066, "Contributes localizations to the editor")),
21
21
  type: 'array',
22
22
  default: [],
23
23
  items: {
@@ -26,19 +26,19 @@ class BaseLocalizationWorkbenchContribution extends Disposable {
26
26
  defaultSnippets: [{ body: { languageId: '', languageName: '', localizedLanguageName: '', translations: [{ id: 'vscode', path: '' }] } }],
27
27
  properties: {
28
28
  languageId: {
29
- description: ( localize(8061, 'Id of the language into which the display strings are translated.')),
29
+ description: ( localize(8067, 'Id of the language into which the display strings are translated.')),
30
30
  type: 'string'
31
31
  },
32
32
  languageName: {
33
- description: ( localize(8062, 'Name of the language in English.')),
33
+ description: ( localize(8068, 'Name of the language in English.')),
34
34
  type: 'string'
35
35
  },
36
36
  localizedLanguageName: {
37
- description: ( localize(8063, 'Name of the language in contributed language.')),
37
+ description: ( localize(8069, 'Name of the language in contributed language.')),
38
38
  type: 'string'
39
39
  },
40
40
  translations: {
41
- description: ( localize(8064, 'List of translations associated to the language.')),
41
+ description: ( localize(8070, 'List of translations associated to the language.')),
42
42
  type: 'array',
43
43
  default: [{ id: 'vscode', path: '' }],
44
44
  items: {
@@ -48,19 +48,19 @@ class BaseLocalizationWorkbenchContribution extends Disposable {
48
48
  id: {
49
49
  type: 'string',
50
50
  description: ( localize(
51
- 8065,
51
+ 8071,
52
52
  "Id of VS Code or Extension for which this translation is contributed to. Id of VS Code is always `vscode` and of extension should be in format `publisherId.extensionName`."
53
53
  )),
54
54
  pattern: '^((vscode)|([a-z0-9A-Z][a-z0-9A-Z-]*)\\.([a-z0-9A-Z][a-z0-9A-Z-]*))$',
55
55
  patternErrorMessage: ( localize(
56
- 8066,
56
+ 8072,
57
57
  "Id should be `vscode` or in format `publisherId.extensionName` for translating VS code or an extension respectively."
58
58
  ))
59
59
  },
60
60
  path: {
61
61
  type: 'string',
62
62
  description: ( localize(
63
- 8067,
63
+ 8073,
64
64
  "A relative path to a file containing translations for the language."
65
65
  ))
66
66
  }
@@ -88,9 +88,9 @@ class LocalizationsDataRenderer extends Disposable {
88
88
  return { data: { headers: [], rows: [] }, dispose: () => { } };
89
89
  }
90
90
  const headers = [
91
- ( localize(8068, "Language ID")),
92
- ( localize(8069, "Language Name")),
93
- ( localize(8070, "Language Name (Localized)")),
91
+ ( localize(8074, "Language ID")),
92
+ ( localize(8075, "Language Name")),
93
+ ( localize(8076, "Language Name (Localized)")),
94
94
  ];
95
95
  const rows = ( localizations
96
96
  .sort((a, b) => a.languageId.localeCompare(b.languageId))
@@ -112,7 +112,7 @@ class LocalizationsDataRenderer extends Disposable {
112
112
  }
113
113
  ( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
114
114
  id: 'localizations',
115
- label: ( localize(8071, "Langauage Packs")),
115
+ label: ( localize(8077, "Langauage Packs")),
116
116
  access: {
117
117
  canToggle: false
118
118
  },
@@ -12,13 +12,13 @@ class ConfigureDisplayLanguageAction extends Action2 {
12
12
  constructor() {
13
13
  super({
14
14
  id: ConfigureDisplayLanguageAction.ID,
15
- title: ( localize2(8072, "Configure Display Language")),
15
+ title: ( localize2(8078, "Configure Display Language")),
16
16
  menu: {
17
17
  id: MenuId.CommandPalette
18
18
  },
19
19
  metadata: {
20
20
  description: ( localize2(
21
- 8073,
21
+ 8079,
22
22
  "Changes the locale of VS Code based on installed language packs. Common languages include French, Chinese, Spanish, Japanese, German, Korean, and more."
23
23
  ))
24
24
  }
@@ -33,9 +33,9 @@ class ConfigureDisplayLanguageAction extends Action2 {
33
33
  const disposables = ( new DisposableStore());
34
34
  const qp = disposables.add(quickInputService.createQuickPick({ useSeparators: true }));
35
35
  qp.matchOnDescription = true;
36
- qp.placeholder = ( localize(8074, "Select Display Language"));
36
+ qp.placeholder = ( localize(8080, "Select Display Language"));
37
37
  if (installedLanguages?.length) {
38
- const items = [{ type: 'separator', label: ( localize(8075, "Installed")) }];
38
+ const items = [{ type: 'separator', label: ( localize(8081, "Installed")) }];
39
39
  qp.items = items.concat(this.withMoreInfoButton(installedLanguages));
40
40
  }
41
41
  disposables.add(qp.onDidHide(() => {
@@ -47,7 +47,7 @@ class ConfigureDisplayLanguageAction extends Action2 {
47
47
  if (newLanguages.length) {
48
48
  qp.items = [
49
49
  ...qp.items,
50
- { type: 'separator', label: ( localize(8076, "Available")) },
50
+ { type: 'separator', label: ( localize(8082, "Available")) },
51
51
  ...this.withMoreInfoButton(newLanguages)
52
52
  ];
53
53
  }
@@ -73,7 +73,7 @@ class ConfigureDisplayLanguageAction extends Action2 {
73
73
  for (const item of items) {
74
74
  if (item.extensionId) {
75
75
  item.buttons = [{
76
- tooltip: ( localize(8077, "More Info")),
76
+ tooltip: ( localize(8083, "More Info")),
77
77
  iconClass: 'codicon-info'
78
78
  }];
79
79
  }
@@ -83,7 +83,7 @@ class ConfigureDisplayLanguageAction extends Action2 {
83
83
  }
84
84
  class ClearDisplayLanguageAction extends Action2 {
85
85
  static { this.ID = 'workbench.action.clearLocalePreference'; }
86
- static { this.LABEL = ( localize2(8078, "Clear Display Language Preference")); }
86
+ static { this.LABEL = ( localize2(8084, "Clear Display Language Preference")); }
87
87
  constructor() {
88
88
  super({
89
89
  id: ClearDisplayLanguageAction.ID,
@@ -24,16 +24,16 @@ let AbstractLocaleService = class AbstractLocaleService {
24
24
  const restartDialog = await this.dialogService.confirm({
25
25
  type: 'info',
26
26
  message: ( localize(
27
- 13505,
27
+ 13518,
28
28
  "To change the display language, {0} needs to reload",
29
29
  this.productService.nameLong
30
30
  )),
31
31
  detail: ( localize(
32
- 13506,
32
+ 13519,
33
33
  "Press the reload button to refresh the page and set the display language to {0}.",
34
34
  languagePackItem.label
35
35
  )),
36
- primaryButton: ( localize(13507, "&&Reload")),
36
+ primaryButton: ( localize(13520, "&&Reload")),
37
37
  });
38
38
  if (restartDialog.confirmed) {
39
39
  this.hostService.restart();
@@ -47,15 +47,15 @@ let AbstractLocaleService = class AbstractLocaleService {
47
47
  const restartDialog = await this.dialogService.confirm({
48
48
  type: 'info',
49
49
  message: ( localize(
50
- 13508,
50
+ 13521,
51
51
  "To change the display language, {0} needs to reload",
52
52
  this.productService.nameLong
53
53
  )),
54
54
  detail: ( localize(
55
- 13509,
55
+ 13522,
56
56
  "Press the reload button to refresh the page and use your browser's language."
57
57
  )),
58
- primaryButton: ( localize(13507, "&&Reload")),
58
+ primaryButton: ( localize(13520, "&&Reload")),
59
59
  });
60
60
  if (restartDialog.confirmed) {
61
61
  this.hostService.restart();