• Josianne Hyson's avatar
    Remove empty locale folders in gettext:regenerate · 5706a49c
    Josianne Hyson authored
    When a `locale/*/gitlab.po` file is removed, the folder (*) will remain
    on local dev machines as the folder still contains git ignored files.
    This slows down the `gettext:regenerate` command, as the task looks for
    the folders to determine which `gitlab.po` files need to be generated.
    
    Add a step to remove these 'empty' folders before starting to regenerate
    translations.
    
    Add some specs for the gettext rake tasks.
    
    Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/238208
    5706a49c
gettext_rake_spec.rb 5.34 KB