@umituz/react-native-settings 4.20.9 → 4.20.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-settings",
3
- "version": "4.20.9",
3
+ "version": "4.20.10",
4
4
  "description": "Complete settings hub for React Native apps - consolidated package with settings, about, legal, appearance, feedback, FAQs, and rating",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { useNavigation } from "@react-navigation/native";
3
3
  import { AppearanceSection } from "../../../../domains/appearance/presentation/components/AppearanceSection";
4
4
  import { NotificationsSection } from "@umituz/react-native-notifications";
5
- import { useLocalization } from "@umituz/react-native-localization";
5
+ import { useLocalization, getLanguageByCode } from "@umituz/react-native-localization";
6
6
  import { SettingsItemCard } from "../../../components/SettingsItemCard";
7
7
  import type { NormalizedConfig } from "../../utils/normalizeConfig";
8
8
 
@@ -27,6 +27,11 @@ export const FeatureSettingsSection: React.FC<FeatureSettingsSectionProps> = ({
27
27
  navigation.navigate(route as never);
28
28
  };
29
29
 
30
+ const currentLanguageData = getLanguageByCode(currentLanguage);
31
+ const languageDisplayName = currentLanguageData
32
+ ? `${currentLanguageData.flag} ${currentLanguageData.nativeName}`
33
+ : currentLanguage || "English";
34
+
30
35
  return (
31
36
  <>
32
37
  {features.appearance && (
@@ -43,7 +48,7 @@ export const FeatureSettingsSection: React.FC<FeatureSettingsSectionProps> = ({
43
48
  {features.language && (
44
49
  <SettingsItemCard
45
50
  title={t("settings.languageSelection.title")}
46
- description={currentLanguage || "English"}
51
+ description={languageDisplayName}
47
52
  icon="globe-outline"
48
53
  onPress={handleLanguagePress}
49
54
  sectionTitle={t("settings.languageSelection.title")}