Repository navigation
feat: add Nepali language support and fix link preview test - #1
Merged
eramitgupta merged 1 commit intoOct 17, 2026
Merged
eramitgupta merged 1 commit into
eramitgupta merged 1 commit into
Conversation
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.
Hey @eramitgupta! 👋
This PR adds complete Nepali (
ne/नेपाली) language support to your multi-language system on dev-null-sh#357, and fixes the CI test failure inCommitControllerTest.1. What's Included
Locale Enum & Label:
case Nepali = 'ne'toApp\Enums\Localewith native labelनेपाली.tests/Unit/Enums/LocaleTest.phpto test both enum case resolution and native label representation.Full Translation Group Parity (8/8 Groups):
lang/ne/*.phpwith 100% key and:placeholderparity:lang/ne/nav.phplang/ne/log.phplang/ne/search.phplang/ne/notifications.phplang/ne/composer.phplang/ne/commits.phplang/ne/users.phplang/ne/settings.php/dev/null,devnull,HEAD,stash@{0},fatal:, keyboard keys,@usernames).Frontend JSON Synchronization:
php artisan erag:generate-langto generate all 8 corresponding JSON files inresources/js/lang/ne/*.json.resources/js/lang/ne/*.jsonmatcheslang/ne/*.phpwith byte-for-byte exactness.CI Test Fix in
tests/Feature/Controllers/CommitControllerTest.php:it('does not mention an unavailable parent in the link preview'), the test asserted->assertDontSee('replying to').commits.card.replying_to('replying to @:username') is shared into Inertia'sdata-pagepayload vialang, the raw HTML response body matched the translation key substring.->assertDontSee('replying to @taylorotwell')(matching the approved preview test on line 798), preserving the exact test intent while resolving the CI failure.Quality Verification
bun run test:lint: 0 warnings, 0 errors.bun run test:types: 0 type errors.bun run build: built clean in 3.97s../vendor/bin/pint --test: passed../vendor/bin/rector --dry-run: 0 errors../vendor/bin/phpstan analyse: 0 errors (level: max)../vendor/bin/pest --type-coverage --min=100: 100.0% type coverage.TranslationsTestassertions: 11/11 locales pass across all 8 groups.