@codingame/monaco-vscode-localization-service-override 26.2.2 → 28.0.0

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": "26.2.2",
3
+ "version": "28.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - localization service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "26.2.2"
18
+ "@codingame/monaco-vscode-api": "28.0.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "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(9063, "Contributes localizations to the editor")),
20
+ description: ( localize(9903, "Contributes localizations to the editor")),
21
21
  type: "array",
22
22
  default: [],
23
23
  items: {
@@ -36,19 +36,19 @@ class BaseLocalizationWorkbenchContribution extends Disposable {
36
36
  }],
37
37
  properties: {
38
38
  languageId: {
39
- description: ( localize(9064, "Id of the language into which the display strings are translated.")),
39
+ description: ( localize(9904, "Id of the language into which the display strings are translated.")),
40
40
  type: "string"
41
41
  },
42
42
  languageName: {
43
- description: ( localize(9065, "Name of the language in English.")),
43
+ description: ( localize(9905, "Name of the language in English.")),
44
44
  type: "string"
45
45
  },
46
46
  localizedLanguageName: {
47
- description: ( localize(9066, "Name of the language in contributed language.")),
47
+ description: ( localize(9906, "Name of the language in contributed language.")),
48
48
  type: "string"
49
49
  },
50
50
  translations: {
51
- description: ( localize(9067, "List of translations associated to the language.")),
51
+ description: ( localize(9907, "List of translations associated to the language.")),
52
52
  type: "array",
53
53
  default: [{
54
54
  id: "vscode",
@@ -61,19 +61,19 @@ class BaseLocalizationWorkbenchContribution extends Disposable {
61
61
  id: {
62
62
  type: "string",
63
63
  description: ( localize(
64
- 9068,
64
+ 9908,
65
65
  "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`."
66
66
  )),
67
67
  pattern: "^((vscode)|([a-z0-9A-Z][a-z0-9A-Z-]*)\\.([a-z0-9A-Z][a-z0-9A-Z-]*))$",
68
68
  patternErrorMessage: ( localize(
69
- 9069,
69
+ 9909,
70
70
  "Id should be `vscode` or in format `publisherId.extensionName` for translating VS code or an extension respectively."
71
71
  ))
72
72
  },
73
73
  path: {
74
74
  type: "string",
75
75
  description: ( localize(
76
- 9070,
76
+ 9910,
77
77
  "A relative path to a file containing translations for the language."
78
78
  ))
79
79
  }
@@ -111,7 +111,7 @@ class LocalizationsDataRenderer extends Disposable {
111
111
  dispose: () => {}
112
112
  };
113
113
  }
114
- const headers = [( localize(9071, "Language ID")), ( localize(9072, "Language Name")), ( localize(9073, "Language Name (Localized)"))];
114
+ const headers = [( localize(9911, "Language ID")), ( localize(9912, "Language Name")), ( localize(9913, "Language Name (Localized)"))];
115
115
  const rows = ( localizations.sort((a, b) => a.languageId.localeCompare(b.languageId)).map(localization => {
116
116
  return [
117
117
  localization.languageId,
@@ -130,7 +130,7 @@ class LocalizationsDataRenderer extends Disposable {
130
130
  }
131
131
  ( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
132
132
  id: "localizations",
133
- label: ( localize(9074, "Language Packs")),
133
+ label: ( localize(9914, "Language Packs")),
134
134
  access: {
135
135
  canToggle: false
136
136
  },
@@ -14,13 +14,13 @@ class ConfigureDisplayLanguageAction extends Action2 {
14
14
  constructor() {
15
15
  super({
16
16
  id: ConfigureDisplayLanguageAction.ID,
17
- title: ( localize2(9075, "Configure Display Language")),
17
+ title: ( localize2(9915, "Configure Display Language")),
18
18
  menu: {
19
19
  id: MenuId.CommandPalette
20
20
  },
21
21
  metadata: {
22
22
  description: ( localize2(
23
- 9076,
23
+ 9916,
24
24
  "Changes the locale of VS Code based on installed language packs. Common languages include French, Chinese, Spanish, Japanese, German, Korean, and more."
25
25
  ))
26
26
  }
@@ -37,11 +37,11 @@ class ConfigureDisplayLanguageAction extends Action2 {
37
37
  useSeparators: true
38
38
  }));
39
39
  qp.matchOnDescription = true;
40
- qp.placeholder = ( localize(9077, "Select Display Language"));
40
+ qp.placeholder = ( localize(9917, "Select Display Language"));
41
41
  if (installedLanguages?.length) {
42
42
  const items = [{
43
43
  type: "separator",
44
- label: ( localize(9078, "Installed"))
44
+ label: ( localize(9918, "Installed"))
45
45
  }];
46
46
  qp.items = items.concat(this.withMoreInfoButton(installedLanguages));
47
47
  }
@@ -54,7 +54,7 @@ class ConfigureDisplayLanguageAction extends Action2 {
54
54
  if (newLanguages.length) {
55
55
  qp.items = [...qp.items, {
56
56
  type: "separator",
57
- label: ( localize(9079, "Available"))
57
+ label: ( localize(9919, "Available"))
58
58
  }, ...this.withMoreInfoButton(newLanguages)];
59
59
  }
60
60
  qp.busy = false;
@@ -79,7 +79,7 @@ class ConfigureDisplayLanguageAction extends Action2 {
79
79
  for (const item of items) {
80
80
  if (item.extensionId) {
81
81
  item.buttons = [{
82
- tooltip: ( localize(9080, "More Info")),
82
+ tooltip: ( localize(9920, "More Info")),
83
83
  iconClass: "codicon-info"
84
84
  }];
85
85
  }
@@ -92,7 +92,7 @@ class ClearDisplayLanguageAction extends Action2 {
92
92
  this.ID = "workbench.action.clearLocalePreference";
93
93
  }
94
94
  static {
95
- this.LABEL = ( localize2(9081, "Clear Display Language Preference"));
95
+ this.LABEL = ( localize2(9921, "Clear Display Language Preference"));
96
96
  }
97
97
  constructor() {
98
98
  super({
@@ -25,16 +25,16 @@ let AbstractLocaleService = class AbstractLocaleService {
25
25
  const restartDialog = await this.dialogService.confirm({
26
26
  type: "info",
27
27
  message: ( localize(
28
- 14765,
28
+ 15890,
29
29
  "To change the display language, {0} needs to reload",
30
30
  this.productService.nameLong
31
31
  )),
32
32
  detail: ( localize(
33
- 14766,
33
+ 15891,
34
34
  "Press the reload button to refresh the page and set the display language to {0}.",
35
35
  languagePackItem.label
36
36
  )),
37
- primaryButton: ( localize(14767, "&&Reload"))
37
+ primaryButton: ( localize(15892, "&&Reload"))
38
38
  });
39
39
  if (restartDialog.confirmed) {
40
40
  this.hostService.restart();
@@ -48,15 +48,15 @@ let AbstractLocaleService = class AbstractLocaleService {
48
48
  const restartDialog = await this.dialogService.confirm({
49
49
  type: "info",
50
50
  message: ( localize(
51
- 14768,
51
+ 15893,
52
52
  "To change the display language, {0} needs to reload",
53
53
  this.productService.nameLong
54
54
  )),
55
55
  detail: ( localize(
56
- 14769,
56
+ 15894,
57
57
  "Press the reload button to refresh the page and use your browser's language."
58
58
  )),
59
- primaryButton: ( localize(14767, "&&Reload"))
59
+ primaryButton: ( localize(15892, "&&Reload"))
60
60
  });
61
61
  if (restartDialog.confirmed) {
62
62
  this.hostService.restart();