vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

Custom separators not use .

Open snowchenlei opened this issue 4 years ago • 4 comments

This is a feature request.

// definition
const messages = {
  en: {
    message: {
      hello: 'hello world'
    }
  },
}
// use
<p>{{ $t("message.hello") }}</p>

Now use . segmentation.I'd like to replace . with Other characters.

For example:

<p>{{ $t("message:hello") }}</p>

snowchenlei avatar Aug 13 '21 01:08 snowchenlei

This sounds like a duplication of https://github.com/kazupon/vue-i18n/issues/710 🤔

@snowchenlei I think custom separator support requires huge efforts. How about escaping, like message\\.hello or such, as suggested in #710 ?

exoego avatar Aug 13 '21 02:08 exoego

now,I deleted key ending. character. That's right.

This demand is not very urgent at the present time

snowchenlei avatar Aug 13 '21 03:08 snowchenlei

+1

jonrandy avatar Jun 05 '23 04:06 jonrandy

+1

mutongwu avatar May 10 '24 09:05 mutongwu