Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multilingual support #123

Closed
p1d1d1 opened this issue Feb 8, 2022 · 5 comments
Closed

Multilingual support #123

p1d1d1 opened this issue Feb 8, 2022 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed i18n / l10n major
Milestone

Comments

@p1d1d1
Copy link
Collaborator

p1d1d1 commented Feb 8, 2022

Is there any plans to implement multilingual support?

@m-mohr
Copy link
Collaborator

m-mohr commented Feb 8, 2022

Not yet, STAC Browser depends on a couple of packages that are not multi-lingual yet so this is a major effort across multiple packages and will likely only appear in version 3.1 or later.

@m-mohr
Copy link
Collaborator

m-mohr commented Nov 21, 2022

Additional interesting use case: Filter/Prioritize assets in STAC Browser based on the language set via the language flag: radiantearth/stac-spec#1190

@m-mohr m-mohr modified the milestones: 3.0.0, 3.1.0 Nov 24, 2022
@m-mohr
Copy link
Collaborator

m-mohr commented Dec 13, 2022

Libraries that potentially need to be translated for STAC Browser to be fully multi-lingual:

  • STAC Browser itself (probably via vue-i18n)
  • stac-fields
  • stac-migrate -> nothing to translate
  • stac-layer -> Some exceptions: Throw custom errors stac-utils/stac-layer#51 (will mostly go away with the stac-js migration)
  • leaflet / vue2-leaflet: ZoomControl -> There are options to pass in the text
  • leaflet-fullscreen / vue2-leaflet-fullscreen: There are options to pass in the text
  • bootstrap-vue
  • v-clipboard -> nothing to translate
  • vue-read-more-smooth
  • vue2-datepicker
  • commonmark -> nothing to translate
  • console logs -> will not be translated

@m-mohr m-mohr modified the milestones: 3.1.0, 3.0.0-rc.1 Dec 21, 2022
m-mohr added a commit that referenced this issue Dec 21, 2022
m-mohr added a commit that referenced this issue Dec 21, 2022
m-mohr added a commit that referenced this issue Feb 7, 2023
* First draft for i18n support #123

* Async loading for languages, translate bootstrap and sidebar

* Translate zoom control

* Further translations

* Persist language in URL, further translations, bugfixes, separate component for provider roles, ...

* More translations...

* Translations for errors, search and filtering, bug fixes

* Localize datepicker

* Fix lint issues

* Adding Frensh language files (#248)

Co-authored-by: Jean-François Bourgon <jean-francois.bourgon@canada.ca>

* Implement language switching for static catalogs, send Accept-Header, fix invalid references to phrase contactProvider

* Fix language switching based on Browser settings

* Started translating metadata

* Minor improvements

* Allow selecting "incomplete" languages

* Improve table rendering for languages

* Add locales from stac-fields

* Added more French language labels

Co-authored-by: Jean-François Bourgon <jean-francois.bourgon@canada.ca>

* German translations etc.

* Initialize uiLanguage correctly

* Add media type based texts

* Further German translations

* Additional translations

* Implement basic API language support

* Further translations

* Fixed typo

* initial French translation of STAC fields

* Add missing translation and clean-up

* Add missing translations

* Reusable phrases

---------

Co-authored-by: Jean-François Bourgon <jean-francois.bourgon@canada.ca>
@m-mohr
Copy link
Collaborator

m-mohr commented Feb 7, 2023

@p1d1d1 A first version of language support has been merged into the dev branch. You could consider adding the Italian language files from now on. :-)

@m-mohr
Copy link
Collaborator

m-mohr commented Feb 7, 2023

ToDos:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed i18n / l10n major
Projects
None yet
Development

No branches or pull requests

2 participants