Skip to content

Conversation

@rtibbles
Copy link
Member

@rtibbles rtibbles commented Apr 14, 2025

Summary

  • Removes language utilities that are only used in ricecooker (c.f. Remove reliance on le-utils based pycountry using getlang methods. ricecooker#597 which removes use of them)
  • Removes optional pycountry dependency as no longer needed
  • Adds a new developer only script that uses the langcodes and pycountry libraries to provide a more user friendly way of adding new language codes to le-utils.
  • Adds new language codes needed to import Bloom Library books
  • Updates Chinese language codes to stop eliding language codes to zh-CN

References

Needed for learningequality/kolibri-library#19

Reviewer guidance

Does the script make sense? Would it be better if the dependencies lived elsewhere rather than via dynamic installtion?

Noting that I did it this way, as the latest versions of these libraries do not support Python < 3.9

Remove ka_lang reference.
Clean up broken BCP 47 parsing and validation.
…d pycountry.

Clean up language lookup json.
Add several new languages.
@rtibbles rtibbles force-pushed the sign_languages branch 2 times, most recently from 0114cf4 to 5ae75e1 Compare April 15, 2025 23:14
Clean up zh language codes.
Copy link
Member

@marcellamaki marcellamaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed with @rtibbles - overall approach makes sense, and only adds langauges (not remove, which could potentially go wrong).

@rtibbles rtibbles merged commit f2572cf into main Apr 16, 2025
13 checks passed
@rtibbles rtibbles deleted the sign_languages branch April 16, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants