[GH-ISSUE #488] Application contains many hard-coded strings that aren't translatable #191

Closed
opened 2026-03-16 13:58:10 +03:00 by kerem · 6 comments
Owner

Originally created by @alecananian on GitHub (Jan 14, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/488

Originally assigned to: @alecananian on GitHub.

Describe the bug
I've found about 150+ unique hard-coded strings in the application code for titles, placeholders, toast messages, etc that are untranslatable because they're not set up to be compatible with nuxt-i18n.

To Reproduce
Steps to reproduce the behavior:

  1. Select any language other than English
  2. Observe untranslated strings even on the homepage ("search history", "History is empty", etc)

Expected behavior
All phrases are available for translation in the localized JSON files

  • OS: any
  • Browser: any
  • Version: any

Additional context
I can create a pull request fixing as many of these as I could find, it just touches a ton of files so I wanted to confirm it's desired first or if the maintainers have any further suggestions.

Originally created by @alecananian on GitHub (Jan 14, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/488 Originally assigned to: @alecananian on GitHub. **Describe the bug** I've found about 150+ unique hard-coded strings in the application code for titles, placeholders, toast messages, etc that are untranslatable because they're not set up to be compatible with `nuxt-i18n`. **To Reproduce** Steps to reproduce the behavior: 1. Select any language other than English 2. Observe untranslated strings even on the homepage ("search history", "History is empty", etc) **Expected behavior** All phrases are available for translation in the localized JSON files - OS: any - Browser: any - Version: any **Additional context** I can create a pull request fixing as many of these as I could find, it just touches a ton of files so I wanted to confirm it's desired first or if the maintainers have any further suggestions.
kerem 2026-03-16 13:58:10 +03:00
Author
Owner

@liyasthomas commented on GitHub (Jan 14, 2020):

So sorry for this, i18n needs contributors such as you to make it complete. Core devs have been busy with other feature requests and bug fixes and have very little time to work on translations.

If you're willing to take this challenge, we're happy for that. Shall I assign this task to you?

<!-- gh-comment-id:574011996 --> @liyasthomas commented on GitHub (Jan 14, 2020): So sorry for this, `i18n` needs contributors such as you to make it complete. Core devs have been busy with other feature requests and bug fixes and have very little time to work on translations. If you're willing to take this challenge, we're happy for that. Shall I assign this task to you?
Author
Owner

@alecananian commented on GitHub (Jan 14, 2020):

Sure! Happy to do it. Does it make sense to do this as a branch off the current typescript branch since they both touch many files, or just off master?

<!-- gh-comment-id:574012705 --> @alecananian commented on GitHub (Jan 14, 2020): Sure! Happy to do it. Does it make sense to do this as a branch off the current `typescript` branch since they both touch many files, or just off `master`?
Author
Owner

@liyasthomas commented on GitHub (Jan 14, 2020):

Let me make master and i18n branch even and will let you know in 2 mins.

<!-- gh-comment-id:574012903 --> @liyasthomas commented on GitHub (Jan 14, 2020): Let me make `master` and `i18n` branch even and will let you know in 2 mins.
Author
Owner

@liyasthomas commented on GitHub (Jan 14, 2020):

Here you go: https://github.com/liyasthomas/postwoman/tree/i18n

i18n contributuion checklist:

  • Pull the latest changes from i18n branch
  • Find lang/<<your_file>>.js
  • Replace existing dummy translations with actual translated lacale (no need to update nuxt.config.js if language is already added once)
  • Save changes, Commit changes, Push to i18n branch only

Refer English translation file https://github.com/liyasthomas/postwoman/blob/i18n/lang/en-US.js (most prolly outdated!) for reference and stylings. Ping me for any doubts.

<!-- gh-comment-id:574013147 --> @liyasthomas commented on GitHub (Jan 14, 2020): Here you go: https://github.com/liyasthomas/postwoman/tree/i18n **`i18n` contributuion checklist:** - [ ] **Pull the latest changes from `i18n` branch** - [ ] Find `lang/<<your_file>>.js` - [ ] **Replace existing dummy translations** with actual translated lacale (no need to update `nuxt.config.js` if language is already added once) - [ ] Save changes, Commit changes, **Push to `i18n` branch only** Refer English translation file https://github.com/liyasthomas/postwoman/blob/i18n/lang/en-US.js (most prolly outdated!) for reference and stylings. Ping me for any doubts.
Author
Owner

@alecananian commented on GitHub (Jan 14, 2020):

Seems I couldn't commit directly to this repository, so I forked the i18n branch. Here are the changes: https://github.com/liyasthomas/postwoman/pull/489

<!-- gh-comment-id:574241208 --> @alecananian commented on GitHub (Jan 14, 2020): Seems I couldn't commit directly to this repository, so I forked the `i18n` branch. Here are the changes: https://github.com/liyasthomas/postwoman/pull/489
Author
Owner

@liyasthomas commented on GitHub (Jan 14, 2020):

Fixed in #490 #491

<!-- gh-comment-id:574287724 --> @liyasthomas commented on GitHub (Jan 14, 2020): Fixed in #490 #491
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#191
No description provided.