Portuguese Locale in _locales folder

84 views
Skip to first unread message

p...@avanawallet.com

unread,
May 20, 2022, 10:15:47 AM5/20/22
to Chromium Extensions
Hello, we are integrating Portuguese into our extension. Should we include just a pt folder in _locales, or do we need to distinguish pt_BR and pt_PT? I ask because the documentation (https://developer.chrome.com/docs/webstore/i18n/) seems to indicate the latter.

For other locales such as en, there are three options: en, en_US, en_GB - so one can use the top-level locale. That is not the case with pt. 

Your guidance would be appreciated.

Regards,
Patrick 

Haseeb Udeen

unread,
May 20, 2022, 2:20:46 PM5/20/22
to Chromium Extensions
Hi there,
I need help with how to open a specific URL with chrome extension, when someone clicks the New Tab button. Whenever the new Tab is opened, I want a URL to be opened by the help of extension. custom extension. Pls help.

Simeon Vincent

unread,
Jun 6, 2022, 2:04:35 PM6/6/22
to p...@avanawallet.com, Chromium Extensions
Just tested this locally and verified that localized strings appeared when I had a "_locales/pt" directory in my extension and my OS was set to use pr_BR and pt_PT. While Chrome worked as expected, I did not test the Chrome Web Store side.

Simeon - @dotproto
Chrome Extensions DevRel


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/eb57e6b1-fb38-4e49-97a6-13c09220f76an%40chromium.org.

Patrick

unread,
Jun 6, 2022, 2:10:51 PM6/6/22
to Chromium Extensions, Simeon Vincent, Chromium Extensions, Patrick
Thank you, Simeon 👍

avm99963

unread,
Jun 7, 2022, 11:02:10 AM6/7/22
to Chromium Extensions, Patrick, Simeon Vincent, Chromium Extensions
About the Chrome Web Store side, this is what I experienced some months ago: if you use pt instead of pt_BR or pt_PT, the Chrome Web Store ignores the translation (and doesn't show that the extension has been translated to Portuguese nor does it let you edit the listing in Portuguese), but after installing it the user will be able to use it in Portuguese.

So I'd recommend you duplicate your translation and save it in both folders (that's what I did with my extension) :)

Cheers :-)
Reply all
Reply to author
Forward
0 new messages