Skip to content

Commit

Permalink
Added Portuquese (Portugal) locale (#436)
Browse files Browse the repository at this point in the history
* Added pt-PT locale

* Added missing pt-PT locale folder

* Reorganize PT locales

---------

Co-authored-by: Matthias Mohr <[email protected]>
  • Loading branch information
psacra and m-mohr authored Jun 7, 2024
1 parent 2e17d42 commit e72ced9
Show file tree
Hide file tree
Showing 13 changed files with 1,099 additions and 186 deletions.
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ src/locales/fr-CH @p1d1d1
src/locales/it @p1d1d1
src/locales/it-CH @p1d1d1
src/locales/ro @mneagul
src/locales/pt @uba
src/locales/pt @psacra
src/locales/pt-BR @uba
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ You need to change the [`locale`](docs/options.md#locale) and [`supportedLocales

The following languages are currently supported:

- de: German (Germany, Switzerland)
- es: Spanish
- en: English (US, UK)
- fr: French (Canada, France, Switzerland)
- it: Italian (Italy, Switzerland)
- ro: Romanian
- ja: Japanese
- pt: Portuguese
- German (Germany, Switzerland)
- Spanish
- English (US, UK)
- French (Canada, France, Switzerland)
- Italian (Italy, Switzerland)
- Romanian
- Japanese
- Portuguese (Brazil, Portugal)

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 @@ -20,7 +20,8 @@ module.exports = {
// "it-CH",
"ro",
"ja",
"pt"
"pt",
// "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;
Loading

0 comments on commit e72ced9

Please sign in to comment.