Allow Lingui to use linguiLocale with country identifiers like en-us
, it would always load en
in this case. Introced a new useLocale
hook to use the correct locale string to use in Intl methods.
#2014
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: target-branch-is-canary | |
on: | |
pull_request: | |
types: [synchronize, opened, reopened, edited] | |
jobs: | |
# Disallow all merged that are not from the canary branch | |
disallow: | |
runs-on: ubuntu-latest | |
steps: | |
- name: disallow if not from canary | |
if: ${{ github.base_ref != 'canary' && github.head_ref != 'changeset-release/from-canary' }} | |
run: | | |
echo "Please target the canary branch, only releases are supposed to be merged into main (base_ref: ${{ github.base_ref }}, head_ref: ${{ github.head_ref }})" | |
exit 1 |