Skip to content

Add missing translation keys to en.json and fix Slovak (sk) translation - #761

Open
rraddatch wants to merge 1 commit into
ableplayer:developfrom
rraddatch:slovak-translation
Open

Add missing translation keys to en.json and fix Slovak (sk) translation#761
rraddatch wants to merge 1 commit into
ableplayer:developfrom
rraddatch:slovak-translation

Conversation

@rraddatch

Copy link
Copy Markdown
Contributor

What and why

During work on the Slovak translation (sk.json), it was discovered that five
translation keys referenced in the JavaScript source (ableplayer.js via
this.translate()) were missing from the English base file en.json:

Key Default value in code
on "On"
off "Off"
prefDescriptionNone "The current video has no audio description in either format."
prefDescFormatOption1 "alternative described version of video"
prefDescFormatOption2 "text-based description, announced by screen reader"

Because en.json serves as the reference/fallback for all other languages,
missing keys here mean any language that also lacks them will silently fall
back to the hardcoded English default in the JS source — with no indication
to translators that a string needs to be translated.

Additionally, prefIntroDescriptionNone is present in en.json but is no
longer used in the source code — it appears to have been superseded by
prefDescriptionNone. It has been left in place to avoid breaking any
external setups that might reference it, but it should be considered
deprecated.

Changes

  • translations/en.json — added 5 missing keys with their correct English values
  • translations/sk.json — added Slovak translations for on/off; fixed
    incorrect instrumental case throughout: čítačkou obrazovkyčítačom obrazovky
    (in prefDescription1 and prefDescFormatOption2)

Note for maintainers

The five keys added to en.json are currently missing from all other language
files as well. It would be great if contributors for each language could add
translations for these keys:

Key English value
on "On"
off "Off"
prefDescriptionNone "The current video has no audio description in either format."
prefDescFormatOption1 "alternative described version of video"
prefDescFormatOption2 "text-based description, announced by screen reader"

- Add missing keys to en.json: on, off, prefDescriptionNone, prefDescFormatOption1, prefDescFormatOption2
- Add Slovak translations for on/off
- Fix Slovak: 'citackou obrazovky' -> 'citacom obrazovky' throughout sk.json

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
joedolson added a commit that referenced this pull request Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant