Extracting messages #14
Replies: 2 comments 8 replies
-
Hi Christoph, thanks for your message and your interest in Talkr! However, I don't really see the added value of your proposal. What would be the point to find all the keys used in your app and then output a json file? You are supposed to have a json in the first place to use the package anyways. Also, some keys may be dynamic, so we couldn't infer the full path in some cases. For exemple, the following script could return function DisplayDay({day}){
return (
<h1>{ T(`date.${date}`) }</h1>
)
} But maybe I didn't understand well your proposal. If so, feel free to send a pr or to correct me. |
Beta Was this translation helpful? Give feedback.
-
Hi All,
Thanks for sharing this. We’re currently using formatJS with formatted messages extractor and automatically upload/download from localise. Do you want to do a meeting on what are some issues that we have been facing ( and did workarounds ) and how your project approaches this?
Best,
Chris
…On 20 Feb 2022, 19:08 +0200, Samuel Stroschein ***@***.***>, wrote:
Hi everyone,
I am building an ecosystem of localization solutions that seem to partially serve @christopanayotovvia needs and @ablankenship10 idea regarding a CLI that can "lint" translations (see inlang/inlang#108. )
Talkr could work with the inlang project through a converter. Is there interest from your side?
@DoneDeal0
PS I went for the "push fluent as standard format" approach (we chatted on reddit).
The VS Code extension is one of the tools of the inlang project and makes extraction of text easy in addition to showing the messages inline.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
--
This communication and any attachments may contain confidential information
and are intended to be viewed only by the intended recipients. If you have
received this message in error, please notify the sender immediately by
replying to the original message and then delete all copies of the email
from your systems.
|
Beta Was this translation helpful? Give feedback.
-
Iw would be helpful if there's a CLI to extract all messages and build JSON :
ex. talkt extract /**/*.ts|x/ should find all keys, sort them alphabetically, nest them if needed ( nesting would be one option, the other is to be dot-notated ) and return as json. Example results
Beta Was this translation helpful? Give feedback.
All reactions