Skip to content

Commit

Permalink
Add Portuguese locale (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
uba authored Apr 29, 2024
1 parent fb36a49 commit e222b97
Show file tree
Hide file tree
Showing 11 changed files with 915 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
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 @uba
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: Portuguese

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"
],
apiCatalogPriority: null,
useTileLayerAsFallback: true,
Expand Down
4 changes: 4 additions & 0 deletions src/locales/pt/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"native": "Português",
"global": "Portuguese"
}
7 changes: 7 additions & 0 deletions src/locales/pt/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/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');
export default {format, locale};
8 changes: 8 additions & 0 deletions src/locales/pt/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/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/fields.json

Large diffs are not rendered by default.

Loading

0 comments on commit e222b97

Please sign in to comment.