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.

linked message translates the translated message

See original GitHub issue

vue & vue-i18n version

2.5.17, 8.4.0

I dont know if it is the expected behavior the linked message translates the translated message

Reproduction

{
  "hello": "Hello {name}",
  "linkedHello": "@:hello"
}

<p>{{ $t('hello', { name: 'World {text}' }) }}</p> - good <p>{{ $t('hello', { name: 'World {text}', text: 'something' }) }}</p> - good

<p>{{ $t('linkedHello', { name: 'World {text}' }) }}</p> - bad <p>{{ $t('linkedHello', { name: 'World {text}', text: 'something' }) }}</p> - bad

What is Expected?

<p>Hello World {text}</p>

What is actually happening?

<p>Hello World {text}</p> - good <p>Hello World {text}</p> - good

<p>Hello World </p> - bad <p>Hello World something</p> - bad

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
exoegocommented, Jan 20, 2019

how can I test if my changes fix the issue

Refer development setup. https://github.com/kazupon/vue-i18n/blob/dev/CONTRIBUTING.md#development-setup

It tells how to setup test environment and how to run tests.

how can i re-build vue with my changes and import to my web page ?

Do you mean: you want to test new changes added to vue-i18n (not vue) on your web page?

  1. npm run build
  2. Find the new vue-i18n.js built in dist directory.
  3. Upload it to your web page and test manually.

But you don’t need to do so. vue-i18n has end-2-end test which runs tests on web browser using Selenium. If you add new tests (and maybe updating existing tests), Selenium runs tests on browsers automatically.

1reaction
kimurazcommented, Jan 20, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Translate messages from another language - LinkedIn
The message is translated to the app language that you set. To reset the message, choose See original message. The Translate feature works...
Read more >
See Post Translations on Your LinkedIn Feed
To see the translated version of a post, click See Translation below the post. Note: The translated language displayed is determined by factors ......
Read more >
Unveiling Translations in the LinkedIn Feed: Keep in Touch ...
The “See Translation” feature is available in more than 60 languages including Spanish, Japanese, and German to a majority of global members on ......
Read more >
Translate Message Center messages - Microsoft 365 Tutorial
Even so, the messages within the message center are displayed in English. Fortunately, Office 365 has the ability to automatically translate these messages...
Read more >
LinkedIn profile translation – why it's important for your online ...
LinkedIn profile translation is quick and easy. ... more profile views than one without and is 36 times more likely to receive a...
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