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

15035: Missing I18N in UI #15083

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions packages/ai-core/src/browser/prompttemplate-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ const PROMPT_TEMPLATE_TEXTMATE_SCOPE = 'source.prompttemplate';

export const PROMPT_TEMPLATE_EXTENSION = '.prompttemplate';

export const DISCARD_PROMPT_TEMPLATE_CUSTOMIZATIONS: Command = {
export const DISCARD_PROMPT_TEMPLATE_CUSTOMIZATIONS: Command = Command.toLocalizedCommand({
id: 'theia-ai-prompt-template:discard',
iconClass: codicon('discard'),
category: 'Theia AI Prompt Templates'
};
}, '', 'theia/ai/core/prompts/category');

// TODO this command is mainly for testing purposes
export const SHOW_ALL_PROMPTS_COMMAND: Command = {
export const SHOW_ALL_PROMPTS_COMMAND: Command = Command.toLocalizedCommand({
id: 'theia-ai-prompt-template:show-prompts-command',
label: 'Show all prompts',
iconClass: codicon('beaker'),
category: 'Theia AI Prompt Templates',
};
}, 'theia/ai/core/showAllPrompts/label', 'theia/ai/core/prompts/category');

@injectable()
export class PromptTemplateContribution implements LanguageGrammarDefinitionContribution, CommandContribution, TabBarToolbarContribution {
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/browser/about-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ export class AboutDialog extends ReactDialog<void> {

protected renderExtensions(): React.ReactNode {
const extensionsInfos = this.extensionsInfos;
const listOfExtensions = nls.localize('theia/core/about/listOfExtensions', 'List of extensions');
return <>
<h3>List of extensions</h3>
<h3>{listOfExtensions}</h3>
<ul className={ABOUT_EXTENSIONS_CLASS}>
{
extensionsInfos
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import { Command, CommandContribution, CommandRegistry, ContributionProvider } f
import { VariableContribution, VariableRegistry } from './variable';
import { VariableQuickOpenService } from './variable-quick-open-service';

export const LIST_VARIABLES: Command = {
export const LIST_VARIABLES: Command = Command.toLocalizedCommand({
id: 'variable.list',
label: 'Variable: List All'
};
}, 'theia/variableResolver/listAllVariables');

@injectable()
export class VariableResolverFrontendContribution implements FrontendApplicationContribution, CommandContribution {
Expand Down
Loading