support spell checker for Bengali (Bangladesh) (#11)

This commit is contained in:
Md. Rifat Hasan Jihan 2023-07-08 17:13:05 +06:00 committed by GitHub
parent b7d4a4dc6c
commit f397cb3458
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -125,6 +125,8 @@ public final class AndroidSpellCheckerService extends SpellCheckerService
return "bulgarian"; return "bulgarian";
case ScriptUtils.SCRIPT_GEORGIAN: case ScriptUtils.SCRIPT_GEORGIAN:
return "georgian"; return "georgian";
case ScriptUtils.SCRIPT_BENGALI:
return "bengali_unijoy";
default: default:
throw new RuntimeException("Wrong script supplied: " + script); throw new RuntimeException("Wrong script supplied: " + script);
} }

View file

@ -63,6 +63,10 @@
android:label="@string/subtype_generic" android:label="@string/subtype_generic"
android:subtypeLocale="pt_BR" android:subtypeLocale="pt_BR"
/> />
<subtype
android:label="@string/subtype_generic"
android:subtypeLocale="bn_BD"
/>
<!-- LineageOS additions --> <!-- LineageOS additions -->
<subtype <subtype
android:label="@string/subtype_generic" android:label="@string/subtype_generic"