Skip to content

Focus on __ View commands are improperly localized #157015

Closed

Description

@joyceerhl

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.70-insider
  • OS Version: Windows 11

Steps to Reproduce:

  1. Configure display language
  2. Search for 'Focus on' in the command palette (all views get a focus command auto-registered)
  3. 🐛 builtin views have the category and view title translated in the original version of the title being displayed
    image

We should probably support ILocalizedString for view titles and categories when registering these commands

Activity

  1. added
    bug
    l10n-platform
    on Aug 8, 2022
  2. added this to the Backlog milestone on Aug 8, 2022
  3. TylerLeonhardt commented on Sep 1, 2023

    @TylerLeonhardt
    Member

    This is because for the "original" text, the viewDescriptor.name is used:

    title: { original: `Focus on ${viewDescriptor.name} View`, value: title },

    That is just a string:

    readonly name: string;

    and is always localized:

    name: localize('panel', "Refactor Preview"),

    To fix this, we need to change that string to an ILocalizedString and use either value or original correctly and fix all compilation errors.

  4. added 3 commits that reference this issue on Oct 9, 2023
    5bd253e
    c89cb5a
    3a91bfa
  5. added a commit that references this issue on Oct 10, 2023
  6. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Oct 10, 2023
  7. added a commit that references this issue on Oct 26, 2023
  8. locked and limited conversation to collaborators on Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedl10n-platformverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions