Skip to content

Release/2.1.2#27

Merged
master-wayne7 merged 5 commits intomainfrom
release/2.1.2
Apr 8, 2026
Merged

Release/2.1.2#27
master-wayne7 merged 5 commits intomainfrom
release/2.1.2

Conversation

@master-wayne7
Copy link
Copy Markdown
Owner

@master-wayne7 master-wayne7 commented Apr 8, 2026

Description

What does this PR do?
Updates the package version to 2.1.2 with adding 5 more languages to data set

Related Issue

Closes #9

Summary by CodeRabbit

  • New Features

    • Added language support for Bengali, Gujarati, Punjabi, Swahili, and Urdu. The total number of supported languages now reaches 82 across all platforms.
  • Documentation

    • Updated README and CHANGELOG to reflect the newly added languages and provide updated language coverage statistics throughout the documentation.

@master-wayne7 master-wayne7 self-assigned this Apr 8, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 8, 2026

📝 Walkthrough

Walkthrough

This PR adds support for five new languages (Bengali, Gujarati, Punjabi, Swahili, and Urdu) to the SafeText package by introducing corresponding data assets, extending the Language enum with new variants, updating documentation to reflect expanded language coverage from 75+ to 80+ supported languages, and bumping the version to 2.1.2.

Changes

Cohort / File(s) Summary
Documentation & Version
CHANGELOG.md, README.md, pubspec.yaml
Updated language support documentation from 75+/77 to 80+/82, added five new Language entries, bumped version from 2.1.1 to 2.1.2, and changed contributors badge URL.
Language Model Extension
lib/src/models/language.dart
Added five new Language enum variants (bengali, gujarati, punjabi, swahili, urdu) and extended LanguageExtension.fromString() and fileCode getter to map these variants to their corresponding language codes (bn, gu, pa, sw, ur).
Language Data Assets
assets/data/bn.txt, assets/data/gu.txt, assets/data/pa.txt, assets/data/sw.txt, assets/data/ur.txt
Added newline-delimited word/phrase datasets for five new languages (11–21 entries per file).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

🐰 Five new tongues now hop in our care,
Bengali, Gujarati floating through air,
Punjabi, Swahili, Urdu so fine,
SafeText's embrace now spans eighty lines,
A global rabbit's multilingual delight! 🌍

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Release/2.1.2' is concise and directly related to the main purpose of the PR—releasing version 2.1.2 with new language support.
Linked Issues check ✅ Passed The PR successfully adds five new language datasets (Bengali, Gujarati, Punjabi, Swahili, Urdu) with proper integration into the Language enum and file structure, directly addressing issue #9 requirements.
Out of Scope Changes check ✅ Passed All changes are scoped to version bumping and adding the five new languages with their datasets and enum entries; no unrelated modifications are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release/2.1.2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (2)
CHANGELOG.md (1)

5-5: Clarify the language count wording.

The phrase "82 supported languages (including Language.all)" is ambiguous. Since Language.all is a meta-value that represents all languages rather than a language itself, consider rephrasing to:

  • "82 supported languages, plus Language.all for convenience"
  • or simply "82 supported languages"

This prevents confusion about whether Language.all is counted as one of the 82 languages.

📝 Suggested wording improvement
-- Language count now reaches **82 supported languages** (including `Language.all`).
+- Language count now reaches **82 supported languages**, plus `Language.all` for loading all languages at once.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CHANGELOG.md` at line 5, Update the CHANGELOG wording to avoid counting the
meta-value `Language.all` as a language: replace "Language count now reaches
**82 supported languages** (including `Language.all`)." with a clearer phrase
such as "**82 supported languages**, plus `Language.all` for convenience" or
simply "**82 supported languages**" so `Language.all` is not implied as one of
the 82; ensure the change references the `Language.all` symbol in the
explanatory text.
README.md (1)

17-17: Consider using consistent language count.

Line 17 says "80+ languages" while line 266 says "82 supported languages". Since the exact count is now 82 (77 original + 5 new), consider updating all references to use the precise count for consistency. This also applies to lines 49 and 427.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` at line 17, Documentation inconsistency: replace all occurrences
of the approximate "80+ languages" phrasing with the precise "82 supported
languages" to match the updated count; search for strings like "80+ languages",
"80 +" and the sentence mentioning "82 supported languages" (e.g., the paragraph
starting "A high-performance Flutter package..." and the other mentions near
lines 49 and 427) and update them to consistently state "82 supported
languages".
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Line 459: Replace the staging contributors badge URL with the production URL
by changing the img src value
"https://stg.contrib.rocks/image?repo=master-wayne7/safe_text" to
"https://contrib.rocks/image?repo=master-wayne7/safe_text" in the README's
contributors badge tag so the badge points to the stable production endpoint.

---

Nitpick comments:
In `@CHANGELOG.md`:
- Line 5: Update the CHANGELOG wording to avoid counting the meta-value
`Language.all` as a language: replace "Language count now reaches **82 supported
languages** (including `Language.all`)." with a clearer phrase such as "**82
supported languages**, plus `Language.all` for convenience" or simply "**82
supported languages**" so `Language.all` is not implied as one of the 82; ensure
the change references the `Language.all` symbol in the explanatory text.

In `@README.md`:
- Line 17: Documentation inconsistency: replace all occurrences of the
approximate "80+ languages" phrasing with the precise "82 supported languages"
to match the updated count; search for strings like "80+ languages", "80 +" and
the sentence mentioning "82 supported languages" (e.g., the paragraph starting
"A high-performance Flutter package..." and the other mentions near lines 49 and
427) and update them to consistently state "82 supported languages".
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ab835179-c751-40ed-9b16-2c50ca1c773e

📥 Commits

Reviewing files that changed from the base of the PR and between eefd9d5 and 4705eb7.

📒 Files selected for processing (9)
  • CHANGELOG.md
  • README.md
  • assets/data/bn.txt
  • assets/data/gu.txt
  • assets/data/pa.txt
  • assets/data/sw.txt
  • assets/data/ur.txt
  • lib/src/models/language.dart
  • pubspec.yaml

<p align="center">
<a href="https://github.com/master-wayne7/safe_text/graphs/contributors">
<img src="https://contrib.rocks/image?repo=master-wayne7/safe_text" alt="Contributors" />
<img src="https://stg.contrib.rocks/image?repo=master-wayne7/safe_text" alt="Contributors" />
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check if the new URL is accessible and returns valid content

echo "=== Testing new contributors badge URL ==="
curl -I "https://stg.contrib.rocks/image?repo=master-wayne7/safe_text" 2>&1 | head -n 5

echo ""
echo "=== Testing original URL for comparison ==="
curl -I "https://contrib.rocks/image?repo=master-wayne7/safe_text" 2>&1 | head -n 5

Repository: master-wayne7/safe_text

Length of output: 887


Use the stable production URL for the contributors badge.

The contributors badge URL uses stg.contrib.rocks (staging environment) instead of the stable production URL contrib.rocks. While both URLs are currently accessible, using a staging URL in production documentation is not recommended as it may be subject to change. Update line 459 to use https://contrib.rocks/image?repo=master-wayne7/safe_text.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` at line 459, Replace the staging contributors badge URL with the
production URL by changing the img src value
"https://stg.contrib.rocks/image?repo=master-wayne7/safe_text" to
"https://contrib.rocks/image?repo=master-wayne7/safe_text" in the README's
contributors badge tag so the badge points to the stable production endpoint.

@master-wayne7 master-wayne7 merged commit 6105db1 into main Apr 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data: Add support for additional languages/dialects

2 participants