devicelocale 0.1.0 copy "devicelocale: ^0.1.0" to clipboard
devicelocale: ^0.1.0 copied to clipboard

outdated

A Flutter package that can be used to extract the locales that are currently defined on a device with the current locale set as the first in the list.

devicelocale #

Gets the device locale data, independent of the app locale settings.

Usage #

import 'package:devicelocale/devicelocale.dart';

then

List languages = await Devicelocale.preferredLanguages;

this should return a list of the preferred/current language locales setup on the device, with the current one being the first in the list.

iOS #

When first created this was a Swift based plugin, but due to these issues the Swift code has been removed and it now uses a simple Objective C call.

Getting Started #

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

125
likes
0
pub points
98%
popularity

Publisher

verified publisherspiralarm.uk

A Flutter package that can be used to extract the locales that are currently defined on a device with the current locale set as the first in the list.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on devicelocale