Skip to content

Commit

Permalink
fix: use english as default language
Browse files Browse the repository at this point in the history
  • Loading branch information
gbicou committed Nov 22, 2024
1 parent b7fb398 commit ba631d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/young-ghosts-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bicou/directus-extension-imagga": patch
---

use english as default language
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default defineHook(({ action }, { services, logger }) => {
* If you’d like to get a translation of the tags in other languages, you should use the language parameter.
* Specify the languages you want to receive your results in, separated by comma.
*/
const IMAGGA_TAGS_LANGUAGE = environment['IMAGGA_TAGS_LANGUAGE'] as string
const IMAGGA_TAGS_LANGUAGE = environment['IMAGGA_TAGS_LANGUAGE'] as string ?? 'en'

/**
* Limits the number of tags in the result to the number you set.
Expand Down

0 comments on commit ba631d6

Please sign in to comment.