# Custom block inline translation for Langs with variants

**URL:** https://forum.makecode.com/t/custom-block-inline-translation-for-langs-with-variants/2636
**Category:** PXT
**Created:** [July 2, 2020, 3:27pm UTC](https://forum.makecode.com/t/custom-block-inline-translation-for-langs-with-variants/2636 "2020-07-02T15:27:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![joan](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@joan](https://forum.makecode.com/u/joan)
#### Post date: [July 2, 2020, 3:27pm UTC](https://forum.makecode.com/t/custom-block-inline-translation-for-langs-with-variants/2636/1 "2020-07-02T15:27:36Z")

</div>

Hi! Playing around with the translations via inline-comments for custom blocks. I can get these to work no problem for French and other languages like so:

//%block.loc.fr=“French translation”

But I seem to be getting the syntax for Spanish and Portuguese wrong (I guess it’s due to the hyphen).

//%block.loc.es-ES=“Spanish translation”

Any help with the correct syntax for these languages is greatly appreciated.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![Joel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/joel/32/3929_2.png) [@Joel](https://forum.makecode.com/u/Joel)
#### Post date: [April 16, 2021, 4:30pm UTC](https://forum.makecode.com/t/custom-block-inline-translation-for-langs-with-variants/2636/2 "2021-04-16T16:30:03Z")

</div>

Hello, did you solve this problem? Now I also encounter this problem. Thanks in advance.
