-
Notifications
You must be signed in to change notification settings - Fork 63
Linting and formatting hotfixes for AudioTrack Row #257
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should separator character be internationalised? Might cultures have different interpretations of the interpunct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -639,5 +639,6 @@ | |||
"intro": "CC Search is now called Openverse and joins WordPress as an open source project.", | |||
"more": "{read-more} about this announcement.", | |||
"read": "Read more" | |||
} | |||
}, | |||
"interpunct": "•" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to add translators comments for this? It might be helpful for something this specific to give the context of where it is used without the translators having to interpret the template code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have a good way to add comments yet sadly. Need to think about the best way to support it. I can ask some i18n folks about of we should do this though before we push
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believed this was merely an aesthetic detail rather than something that needed translation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be good to allow it to be translated... for example in Eastern Arabic, Persian and Urdu numerals the interpunct looks very similar to the notation for 0
, "٠", which could be confusing given that this separates the timestamp from the rest of the text surrounding it.
This is ready for re-review as well @dhruvkb if you didn't see. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All's good, except for one typo.
@@ -77,8 +79,8 @@ export default { | |||
const isSmall = computed(() => props.size === 's') | |||
|
|||
return { | |||
seperator: this.$t('interpunct'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also using $t
without computed(() => {})
will not be reactive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, yep. will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I can't figure out how to use i18n with the composition api 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can put the $t inside the template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooooh, thanks. super easy 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
Fixes checks passing on the main branch. Not sure how this lint warning snuck through, but in any case it's a quick fix.
Checklist
Update index.md
).main
ormaster
).Developer Certificate of Origin
Developer Certificate of Origin