class LocaleStoragePolicy {
  static const currentKey = 'locale';
  static const legacyKey = 'baron_locale';

  static bool hasValue(String? value) => value != null && value.isNotEmpty;

  static bool shouldMigrateLegacy({
    required String? current,
    required String? legacy,
  }) {
    return !hasValue(current) && hasValue(legacy);
  }
}
