Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

2.2 KB
Raw Blame
import { describe, expect, it } from 'vitest'

import { repairTranslatedValue } from './locale-translation-policy.mjs'

describe('locale-translation-policy es round 5', () => {
  // Why: #12113 — brand names stay Latin, but generic workflow nouns keep their Spanish.
  it('keeps brand names English and generic workflow terms translated', () => {
    expect(
      repairTranslatedValue({
        key: 'auto.components.LinearIssueMarkdownDescriptionEditor.d9c47069ef',
        enValue: 'Markdown',
        localeValue: 'Reducción',
        locale: 'es'
      })
    ).toBe('Markdown')
    expect(
      repairTranslatedValue({
        key: 'auto.components.TaskPage.7f3f7b4c18',
        enValue: 'Description (optional, markdown)',
        localeValue: 'Descripción (opcional, rebaja)',
        locale: 'es'
      })
    ).toBe('Descripción (opcional, markdown)')
    expect(
      repairTranslatedValue({
        key: 'auto.components.right.sidebar.source.control.primary.action.ed93b4f14f',
        enValue: 'Commit',
        localeValue: 'Comprometerse',
        locale: 'es'
      })
    ).toBe('Commit')
    expect(
      repairTranslatedValue({
        key: 'auto.components.right.sidebar.GitHistoryPanel.cf7cad58d2',
        enValue: 'No commits yet',
        localeValue: 'Aún no hay compromisos',
        locale: 'es'
      })
    ).toBe('Aún no hay commits')
    expect(
      repairTranslatedValue({
        key: 'auto.components.right.sidebar.SourceControl.b94112eb9e',
        enValue: 'Commit message',
        localeValue: 'mensaje de confirmación',
        locale: 'es'
      })
    ).toBe('mensaje de confirmación')
    expect(
      repairTranslatedValue({
        key: 'auto.components.workspace.cleanup.WorkspaceCleanupDialog.0b1766738a',
        enValue: 'Repo',
        localeValue: 'repositorio',
        locale: 'es'
      })
    ).toBe('repositorio')
    expect(
      repairTranslatedValue({
        key: 'auto.components.sidebar.add.repo.local.start.actions.fb4fc5380e',
        enValue: 'Local project, Git repo, or folder with many repos',
        localeValue: 'Proyecto local, repositorio de Git o carpeta con muchos repositorios',
        locale: 'es'
      })
    ).toBe('Proyecto local, repositorio de Git o carpeta con muchos repositorios')
  })
})