Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix monaco editor localization #15016

Merged
merged 2 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const InsertCodeAtCursorButton = (props: { code: string, editorManager: EditorMa
}]);
}
}, [code, editorManager]);
return <div className='button codicon codicon-insert' title={nls.localizeByDefault('Insert at Cursor')} role='button' onClick={insertCode}></div>;
return <div className='button codicon codicon-insert' title={nls.localizeByDefault('Insert At Cursor')} role='button' onClick={insertCode}></div>;
};

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/ai-chat-ui/src/browser/chat-view-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export namespace ChatViewCommands {
id: 'chat.copy.all',
label: 'Copy All'
});
export const COPY_CODE = Command.toDefaultLocalizedCommand({
export const COPY_CODE = Command.toLocalizedCommand({
id: 'chat.copy.code',
label: 'Copy Code Block'
});
}, 'theia/ai/chat-ui/copyCodeBlock');
}

@injectable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const LanguageModelRenderer: React.FC<LanguageModelSettingsProps> = (
{languageModel.id && <p><strong>{nls.localizeByDefault('Identifier')}: </strong> {languageModel.id}</p>}
{languageModel.name && <p><strong>{nls.localizeByDefault('Name')}: </strong> {languageModel.name}</p>}
{languageModel.vendor && <p><strong>{nls.localize('theia/ai/core/languageModelRenderer/vendor', 'Vendor')}: </strong> {languageModel.vendor}</p>}
{languageModel.version && <p><strong>{nls.localize('theia/ai/core/languageModelRenderer/version', 'Version')}: </strong> {languageModel.version}</p>}
{languageModel.version && <p><strong>{nls.localizeByDefault('Version')}: </strong> {languageModel.version}</p>}
{languageModel.family && <p><strong>{nls.localize('theia/ai/core/languageModelRenderer/family', 'Family')}: </strong> {languageModel.family}</p>}
{languageModel.maxInputTokens &&
<p><strong>
Expand Down
6 changes: 3 additions & 3 deletions packages/ai-terminal/src/browser/ai-terminal-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import { AICommandHandlerFactory } from '@theia/ai-core/lib/browser/ai-command-h
import { AgentService } from '@theia/ai-core';
import { nls } from '@theia/core/lib/common/nls';

const AI_TERMINAL_COMMAND = Command.toDefaultLocalizedCommand({
const AI_TERMINAL_COMMAND = Command.toLocalizedCommand({
id: 'ai-terminal:open',
label: nls.localize('theia/ai/terminal/askAi', 'Ask the AI')
});
label: 'Ask the AI'
}, 'theia/ai/terminal/askAi');

@injectable()
export class AiTerminalCommandContribution implements CommandContribution, MenuContribution, KeybindingContribution {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/browser/about-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class AboutDialog extends ReactDialog<void> {
const compatibilityUrl = 'https://eclipse-theia.github.io/vscode-theia-comparator/status.html';

const detailsLabel = nls.localizeByDefault('Details');
const versionLabel = nls.localize('theia/core/about/version', 'Version');
const versionLabel = nls.localizeByDefault('Version');
const defaultApiLabel = nls.localize('theia/core/about/defaultApi', 'Default {0} API', 'VS Code');
const compatibilityLabel = nls.localize('theia/core/about/compatibility', '{0} Compatibility', 'VS Code');

Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/browser/core-preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,18 @@ export const corePreferenceSchema: PreferenceSchema = {
'http.proxy': {
type: 'string',
pattern: '^https?://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$',
markdownDescription: nls.localizeByDefault('The proxy setting to use. If not set, will be inherited from the `http_proxy` and `https_proxy` environment variables.'),
markdownDescription: nls.localizeByDefault('The proxy setting to use. If not set, will be inherited from the `http_proxy` and `https_proxy` environment variables. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.'),
scope: 'application'
},
'http.proxyStrictSSL': {
type: 'boolean',
default: true,
description: nls.localizeByDefault('Controls whether the proxy server certificate should be verified against the list of supplied CAs.'),
description: nls.localizeByDefault('Controls whether the proxy server certificate should be verified against the list of supplied CAs. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.'),
scope: 'application'
},
'http.proxyAuthorization': {
type: 'string',
markdownDescription: nls.localizeByDefault('The value to send as the `Proxy-Authorization` header for every network request.'),
markdownDescription: nls.localizeByDefault('The value to send as the `Proxy-Authorization` header for every network request. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.'),
scope: 'application'
},
'http.proxySupport': {
Expand All @@ -164,13 +164,13 @@ export const corePreferenceSchema: PreferenceSchema = {
nls.localizeByDefault('Enable proxy support for extensions, override request options.'),
],
default: 'override',
description: nls.localizeByDefault('Use the proxy support for extensions.'),
description: nls.localizeByDefault('Use the proxy support for extensions. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.'),
scope: 'application'
},
'http.systemCertificates': {
type: 'boolean',
default: true,
description: nls.localizeByDefault('Controls whether CA certificates should be loaded from the OS. (On Windows and macOS, a reload of the window is required after turning this off.)'),
description: nls.localizeByDefault('Controls whether CA certificates should be loaded from the OS. On Windows and macOS, a reload of the window is required after turning this off. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.'),
scope: 'application'
},
'workbench.list.openMode': {
Expand Down
Loading
Loading