question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove all empty translations

See original GitHub issue

Some of the challenges in the seed files have translations with no text. These will cause errors when campers have selected these languages. These look like:

      "translations": {
        "de": {
          "description": [],
          "title": ""
        }
      }

In this case, we would need to delete

        "de": {
          "description": [],
          "title": ""
        }

We need to go through and delete all of these empty translations from seed files, and leave the empty "translation": {}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
raisedadeadcommented, Jan 27, 2017

@envy7 you can do it in anyway as it suits you, but make sure when you have opened the pull request it has one commit.

Also, refer the contributing guide, most things have been answered there to guide you!

Thanks and happy fixing!

1reaction
envy7commented, Jan 27, 2017

@QuincyLarson there are a lot of seed files should I do all the changes in a single commit, or in multiple commits and then squash them? Does it make a difference?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature request: remove empty translations · Issue #5214
It would be a great feature to be able to remove empty/untranslated strings from bilingual po files: This would reduce file sizes and ......
Read more >
How can I remove inactive translations? - Help Center
First of all, go into your Weglot dashboard > Translations > Translations list and click on "See your inactive translations": You'll see an ......
Read more >
Release Highlights: Delete all empty subtitles in the Editor and ...
Just click the wrench icon and select “Delete empty subtitles” and see them disappear!
Read more >
How to remove all translations from Translation Workbench?
Is it possible to remove all label translations for a specific language in the Translation Workbench, just reset everything?
Read more >
Clear translations
To delete translations from some or all target segments in a document or in a project, use the Clear translations command. When you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found