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.

Feature request: Allow no-op/lazy translations

See original GitHub issue

Followup from #53

Sometimes it’s necessary to mark strings which will be translated in the future, but leave them intact for now:

import { Trans, noop } from 'lingui-react'

const menu = [
  { to: '/about', title: noop('About') },
  { to: '/contact', title: noop('Contact') },
]

// later in the code
const Menu = () => 
  <div>{
    menu.map(item => 
      <Link to={item.to}>
        <Trans id={item.title} />
      </Link>)
  }</div>

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tricoder42commented, Sep 5, 2017

Alright, added in latest releases:

  • lingui-cli@1.3.2
  • lingui-i18n@1.3.0
  • lingui-react@1.2.0

The function is named i18nMark after all. See the docs for more info.

0reactions
vitexikoracommented, Sep 6, 2017

Awesome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature request] Allow other online sources than Google ...
Hi. Currently, your cute application allow translation from only one online site, Google translate. But there are other cute source for ...
Read more >
Translate into different languages | Feature Requests - Canny
Customer facing part must be available in other languages (spanish, italian, Portuguese, German and French in my case).
Read more >
Feature Request Template: How to Manage Suggestions at ...
A feature request template provides a framework for your users to give feedback, making your life as a product manager a whole lot...
Read more >
Feature Request: Topic Title Translation - Discourse Meta
Allow the topic translation controls to translate the title into additional locales beyond the predefined list, including perhaps by users ...
Read more >
Forum Archive - Feature requests - GTranslate.io
Hi, Please write your wishes/feature requests below and we will try ... a blank page whereas on the non-translated pages it will give...
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