Skip to content

Commit

Permalink
Avoid NeoJSON dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Aug 27, 2024
1 parent 50a31fd commit 5a780e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ PolyglotNaturalLanguageTranslator >> loadJSONTranslationsFor: languageRange in:

^ localeDirectory files select: [ :file | file extension = 'json' ] thenDo: [ :file |
| groupedTranslations |
groupedTranslations := NeoJSONObject fromString: file contents.
groupedTranslations := STON fromString: file contents.
groupedTranslations keysAndValuesDo: [ :group :translations |
translations keysAndValuesDo: [ :translationKey :translation |
monoglotTranslator translationAt: ( codec decode: translationKey ) put: translation ]
Expand Down

0 comments on commit 5a780e2

Please sign in to comment.