Add Galician (gl) locale#1301
Open
r1cksync wants to merge 1 commit into
Open
Conversation
Add a GalicianLocale class supporting the 'gl' and 'gl-es' locale codes, with month names, month abbreviations, day names, day abbreviations, meridians, relative-time timeframes, and ordinal number formatting. Includes comprehensive tests covering every timeframe, all month and day name lookups, meridians, ordinals, relative formatting and the public format/humanize API.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1301 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 10
Lines 2315 2329 +14
Branches 358 358
=========================================
+ Hits 2315 2329 +14 ☔ View full report in Codecov by Harness. |
Author
|
Heads-up on the one red check: |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new Galician (
gl,gl-es) locale. Galician is a Romance language with around 2.4 million speakers, co-official with Spanish in the autonomous community of Galicia (Spain). It is closely related to Portuguese and shares structure with the existing Spanish and Portuguese locales.The new
GalicianLocaleclass implements:names:["gl", "gl-es"]past/future/and_word:"hai {0}"/"en {0}"/"e"timeframes(singular and plural forms for now/second/minute/hour/day/week/month/year)month_namesandmonth_abbreviationsday_namesandday_abbreviationsmeridians_ordinal_number, e.g.5º) andordinal_day_re, matching the Spanish locale conventionTranslation sources
All translations follow the standard normative Galician set by the Real Academia Galega (RAG) and the Instituto da Lingua Galega:
These also match the Galician CLDR data and GNU gettext Galician locale conventions.
Tests
A comprehensive
TestGalicianLocaletest class was added totests/test_locales.pycovering:describe/describe_multigl-es) and the publicformat/humanizeAPILocally,
arrow/locales.pyreaches 100% coverage and the full suite passes (1925 passed), satisfying the 99% coverage gate.black,isort, andflake8all pass.