Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ src/locales/fr-CH @p1d1d1
src/locales/it @p1d1d1
src/locales/it-CH @p1d1d1
src/locales/ro @mneagul
src/locales/pt-BR @uba
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've sent you an invite for this repository. Otherwise the codeowners file won't recognize you.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invitation accepted!

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ The following languages are currently supported:
- it: Italian (Italy, Switzerland)
- ro: Romanian
- ja: Japanese
- pt-BR: Portuguese (Brazil)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whenever we have a new language, we start exposing it as language without the country specific code.
I'd propose to rename all this from pt-BR to pt and then split it up into pt-BR and pt-PT once someone comes up and suggest specific changes per country. Would you be fine with that? This would also allow Portuguese speakers from other countries than Brazil to automatically see a Portuguese translation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @m-mohr. Thanks for the review. I'm fine with that! No problem, let's rename it to "pt".


We manage the translations in Crowdin, please see <https://crowdin.com/project/stac-browser/> for details.

Expand Down
3 changes: 2 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ module.exports = {
"it",
// "it-CH",
"ro",
"ja"
"ja",
"pt-BR"
],
apiCatalogPriority: null,
useTileLayerAsFallback: true,
Expand Down
4 changes: 4 additions & 0 deletions src/locales/pt-BR/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"native": "Português (Brasil)",
"global": "Portuguese (Brazil)"
}
7 changes: 7 additions & 0 deletions src/locales/pt-BR/custom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"authConfig": {
"description": ""
},
"fields": {
}
}
3 changes: 3 additions & 0 deletions src/locales/pt-BR/datepicker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const format = 'DD/MM/YYYY';
const locale = import('vue2-datepicker/locale/pt-br');
export default {format, locale};
8 changes: 8 additions & 0 deletions src/locales/pt-BR/default.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Utils from '../../utils';
export default Utils.mergeDeep(
{
fields: require('./fields.json'),
},
require('./texts.json'),
require('./custom.json')
);
2 changes: 2 additions & 0 deletions src/locales/pt-BR/duration.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { pt as locale } from '@musement/iso-duration';
export default locale;
524 changes: 524 additions & 0 deletions src/locales/pt-BR/fields.json

Large diffs are not rendered by default.

Loading