Skip to content
pubscout

turkish

0.2.1, released 5 years ago by an unverified publisher

Turkish case conversion and sorting helpers for Dart strings

WASM-ready
$ flutter pub add turkish
Source repository

What it does

Provides extension methods to correctly convert strings to upper, lower, and title case in Turkish, and to compare or sort strings according to Turkish locale rules.

AI-written summary of version 0.2.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need Turkish‑specific case conversion that Dart’s core libraries don’t handle correctly
  • You want to sort or compare strings in Turkish order without writing custom comparators

Skip it when

  • You are already using platform‑specific locale methods that handle Turkish correctly
  • You need case handling for multiple locales beyond Turkish

Strengths

  • Correct i/I mapping for Turkish
  • Simple extension methods that integrate seamlessly with Dart strings
  • No external dependencies

Weaknesses

  • Only supports Turkish locale
  • No support for other languages or locale‑aware formatting

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:turkish/turkish.dart';

void main() {
  var s = "kısa şiir";
  print(s.toUpperCaseTr()); // KISA ŞİİR
  print("Zonguldak".compareToTr("Çankırı")); // 1
}

Alternatives

Packages that do the same job and could replace turkish.