lokalise / i18n-ally

🌍 All in one i18n extension for VS Code
https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally
MIT License
4.05k stars 326 forks source link

Colons are leaked after translating attributes #869

Open okfine17 opened 1 year ago

okfine17 commented 1 year ago

Colons are leaked after translating attributes vue 2 + ts project `<Select placeholder="$t('quan-bu')" style="width: 100%" v-model="model.workflowId" transfer clearable

<Option v-for="(item, index) in decisionFlowList" :key="index" :value="item.CODE" {{ item.VALUE }}</Option

` not placeholder="$t('quan-bu')", it should be : placeholder="$t('quan-bu')"

okfine17 commented 1 year ago

original code it is in vue 2 script

this.flowData.minTime = moment(item.minTime).format( "YYYY-MM-DD HH:mm:ss" );

finnal code

`this.flowData.minTime = moment(item.minTime).format(
    this.$t("yyyy-mm-dd-hh-mm-ss")
  );`

"YYYY-MM-DD HH:mm:ss" dont need to be changed