archesproject / arches

Arches is a web platform for creating, managing, & visualizing geospatial data. Arches was inspired by the needs of the Cultural Heritage community, particularly the widespread need of organizations to build & manage cultural heritage inventories
GNU Affero General Public License v3.0
218 stars 143 forks source link

Statically generate available languages for frontend clients #11656

Open jacobtylerwalls opened 1 week ago

jacobtylerwalls commented 1 week ago

@johnatawnclementawn suggested in archesproject/arches-vue-utils#5 to use the string "None" for a label search that finds no results.

That led me to:

I like this idea, but the problem is that we'd need to localize it, and we don't currently have a way to use gettext in js/ts files. The recommendation is to expose the result of createGettext in its own file, but we create it dynamically after making a call to the backend to get available languages.

We might want to make the languages a little more static following the lead of archesproject/arches#11571. I'll open a core issue to discuss it with @chrabyrd.

Originally posted by @jacobtylerwalls in https://github.com/archesproject/arches-vue-utils/pull/5#pullrequestreview-2461672907

jacobtylerwalls commented 1 week ago

Related: #10962