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.

Tool to extract translateable strings from app

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[x] feature request

Current behavior You have to manually extract strings you want translated

Expected/desired behavior A tool that automatically extracts strings using translate pipe in templates or the get method in components.

Maybe I missed something and this is already possible, but I haven’t seen it mentioned anywhere and have been unable to find anything related using Google.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ocombecommented, Nov 30, 2016

Nothing public yet. I will be a nodejs lib that you can call as a cli, or include as a library if you prefer. You’ll give it a glob of files to parse (ex: ["src/*.ts", "src/*.html"]) and it will use regexps to find matches. The tricky part is the find the correct matches and transform them into keys 😃

0reactions
ocombecommented, Dec 21, 2016

Closing this issue now, use @biesbjerg’s extractor if you need it ! It works well 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lingobit Extractor - Extracts hard-coded strings to resources
The tool solves a huge part of internationalization task by extracting hard-coded strings from source code to resources. Many days of tedious, error...
Read more >
Text extraction tools for macOS and iOS app localization
Working with source files​​ If we want to only extract the translated text for source files, we can use the genstrings tool to...
Read more >
Making Your App Ready for Translations
In this tutorial we'll show how to extract the strings your app displays. We'll review several alternatives for accessing translated strings. First, follow...
Read more >
PO file (Gettext) - Localizely
Upload your PO files to Localizely and translate missing strings with translators. Once translated download files back to your source code. To automate...
Read more >
Translations - Frappe Framework
How it works · 1. Extracting translatable strings · 2. Translating the extracted strings · 3. Translating strings in app.
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