Add built-in translations to the widget
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 52/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- internationalization
Direção de pesquisa
Start with packages/widget/src/i18n.ts and the existing core locale files under packages/core/src/i18n/; then copy the test pattern from packages/core/tests/i18n/locales.test.ts. Pick one target language, add its typed locale file and registration, and check the widget keys in website/src/content/docs/widget/i18n.mdx. Done means the locale has all keys in native script, the widget i18n tests cover registered locales and fallback, and a changeset is included.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
The docs say the widget ships 8 built-in locales, but packages/widget/src/i18n.ts only registers English, so any other locale silently falls back to English. Let's add the missing languages. This is a great fit for native speakers. Please comment with the language you're taking and open one PR per language.
Where to look
packages/widget/src/i18n.ts(WidgetLocaleStrings,locales)packages/core/src/i18n/*.ts. Use these as a starting point only: the es/fr/de files drop accents and the Hindi file is romanized.packages/core/tests/i18n/locales.test.ts(test pattern to copy)website/src/content/docs/widget/i18n.mdx
Acceptance criteria
- The first PR sets up the structure: one file per language in
packages/widget/src/locales/, typed asWidgetLocaleStringsand registered ini18n.ts, plus its own language - Target languages:
es,fr,de,hi,ja,zh,ar - All keys translated, with correct accents and native script (Devanagari for Hindi)
- New
packages/widget/tests/i18n.test.ts: every registered locale has a non-empty value for every key, and an unknown code falls back to English - The "Locale Strings" section of
widget/i18n.mdxlists the real widget keys - Changeset for
@chatcops/widget - Out of scope: right-to-left layout for Arabic (separate follow-up)
Comment with the language you want to take and I'll note it here. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #<this issue number>. Setup notes (pnpm, build before test) are in CONTRIBUTING.md.
- Linguagem predominante
- TypeScript
- Estrelas
- 13
- Forks
- 7
- Merge médio
- 3h 41min
- PRs com merge (30d)
- 155
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de codercops/chatcops
-
Document the pre-chat formTalvez já em andamento @masyarakatai assumiu há 5 dias. Abertadocumentation good first issue hacktoberfest widget
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
codercops/chatcops#70 · 5 comentários ·
Mantenedores costumam responder em até 1 dia
-
docs: update the providers page for openai-compatible, registerProvider and provider importsTalvez já em andamento @prakashNalla assumiu hoje. Abertadocumentation good first issue hacktoberfest website
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 76/100
codercops/chatcops#291 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
docs: add a protocol reference page for custom clientsTalvez já em andamento @kachamsiddarth assumiu hoje. Abertadocumentation good first issue hacktoberfest website
codercops/chatcops#286 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Create @chatcops/store-cloudflare (D1, KV and a Durable Object counter)Talvez já em andamento @bhushan4work assumiu hoje. Abertaenhancement hacktoberfest help wanted server
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
codercops/chatcops#249 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Create @chatcops/store-sqlite, a store for single-server setupsTalvez já em andamento @srikar-naidu assumiu hoje. Abertaenhancement hacktoberfest help wanted server
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
codercops/chatcops#247 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de codercops/chatcops
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
phivk/rubiks-lab#33 ·
Mantenedores costumam responder em até 1 dia
-
BUG:Edit Album strips spaces from the password so albums with a leading/trailing space in the password can't be editedTalvez já em andamento @ManyaJain111 assumiu hoje. Abertabug enhancement possible-duplicate
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
AOSSIE-Org/PictoPy#1637 · 4 comentários ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
chaitin/MonkeyCode#1437 ·
Mantenedores costumam responder em até 1 dia
-
rtdb-info-connected-order test: unhandled 'connection is closed' rejection fails the CLI suiteAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
area:cards enhancement migration ready-for-agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
fil-donadoni/tolaria#6309 ·
Mantenedores costumam responder em até 1 dia