Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dashes in ARBs filenames with locales having more than language #81

Merged
merged 8 commits into from
Dec 8, 2023

Conversation

Albert221
Copy link
Member

@Albert221 Albert221 commented Dec 6, 2023

  • Save files for locales with script and/or country code with underscores instead of hyphens.
  • Capitalize locales in ARB @@locale correctly

Fixes #80.

@Albert221 Albert221 added the bug Something isn't working label Dec 6, 2023
@Albert221
Copy link
Member Author

I'm not yet sure whether I should capitalize the filenames or keep them all lowercase

@Albert221 Albert221 marked this pull request as ready for review December 8, 2023 10:53
@Albert221 Albert221 merged commit 295638f into main Dec 8, 2023
2 checks passed
@Albert221 Albert221 deleted the bug/80-locale-dash-filename branch December 8, 2023 11:12
Copy link
Contributor

@bartekpacia bartekpacia left a comment

Choose a reason for hiding this comment

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

LGTM.

Comment on lines +80 to +85
for dir in l10n l10n_prefixed; do
for locale in en pl en_HK sr sr_Cyrl es es_419; do
echo "=== lib/$dir/app_$locale.arb ==="
cat lib/$dir/app_$locale.arb
done
done
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm against having more than a few lines of shell code in GH Actions, but looks like this is purely for convenience and not criticial to integration test itself. So OK.

"slices"
"strings"

"github.com/pkg/errors"
Copy link
Contributor

Choose a reason for hiding this comment

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

this package is archived fyi

there's errors in stdlib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename download arb filename
2 participants