# Bug (?) in aurelia-i18n: Interpolated strings cut off when argument string contains colon (':')

**URL:** <https://discourse.aurelia.io/t/bug-in-aurelia-i18n-interpolated-strings-cut-off-when-argument-string-contains-colon/735>\
**Category:** Help Requests\
**Created:** [February 2, 2018, 2:38pm UTC](https://discourse.aurelia.io/t/bug-in-aurelia-i18n-interpolated-strings-cut-off-when-argument-string-contains-colon/735 "2018-02-02T14:38:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samos](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samos](https://discourse.aurelia.io/u/samos)\
**Post date:** [February 2, 2018, 2:38pm UTC](https://discourse.aurelia.io/t/bug-in-aurelia-i18n-interpolated-strings-cut-off-when-argument-string-contains-colon/735/1 "2018-02-02T14:38:02Z")

</div>

My translation file for aurelia-i18n contains a a string like this one:

```
"dialogText": "To which list should "{{item}}" be added?"
```

I use it in a template like this:

```
<span>${'dialogText' | t : { 'item': selectedItem.name }}</span>
```

All is good, except when the string that `selectedItem.name` is bound to contains a colon (`':'`) somehere in the middle, such as `'CS:GO'`. Then the resulting rendered text will look like this:

```
GO" be added?
```

Wheras the expected result would be:

```
To which list should "CS:GO" be added?
```

Is this a bug or expected behavior?

---

<div class="post-metadata">

**Author:** ![zewa666](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/zewa666/32/19_2.png) [@zewa666](https://discourse.aurelia.io/u/zewa666)\
**Post date:** [February 2, 2018, 8:26pm UTC](https://discourse.aurelia.io/t/bug-in-aurelia-i18n-interpolated-strings-cut-off-when-argument-string-contains-colon/735/2 "2018-02-02T20:26:15Z")

</div>

If you could upload a minimal example showing the error I can help

---

<div class="post-metadata">

**Author:** ![samos](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samos](https://discourse.aurelia.io/u/samos)\
**Post date:** [February 3, 2018, 1:21pm UTC](https://discourse.aurelia.io/t/bug-in-aurelia-i18n-interpolated-strings-cut-off-when-argument-string-contains-colon/735/3 "2018-02-03T13:21:31Z")

</div>

Well, thank you - that actually already helped 😄 ! While trying to prepare a minimal example, I realized that the problem was elsewhere. Because of somewhat contrived behavior of my actual code, the text in question was actually translated twice - i.e. the translated text was again used as translation key. Which understandably yielded unexpected results - not Aurelia’s or i18next’s fault.

---

<div class="post-metadata">

**Author:** ![zewa666](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/zewa666/32/19_2.png) [@zewa666](https://discourse.aurelia.io/u/zewa666)\
**Post date:** [February 3, 2018, 3:59pm UTC](https://discourse.aurelia.io/t/bug-in-aurelia-i18n-interpolated-strings-cut-off-when-argument-string-contains-colon/735/4 "2018-02-03T15:59:28Z")

</div>

While Id like to think its because of my great Karma 🙂 I’ve already learned that building a sample most often shows the actual issue. Happy you got it solved.
