Skip to content

Commit ff7cef4

Browse files
authored
fix(boilerplate): migrate imports path to @/i18n (#2894 by @flexbox)
1 parent eb5ef66 commit ff7cef4

File tree

15 files changed

+16
-15
lines changed

15 files changed

+16
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Nothing makes it into Ignite unless it's been proven on projects that Infinite R
8181
| apisauce | REST client | v2 | Communicate with back-end |
8282
| Reactotron RN | Inspector/Debugger | v3 | JS debugging |
8383
| Hermes | JS engine | | Fine-tuned JS engine for RN |
84-
| Jest | Test Runner | v26 | Standard test runner for JS apps |
84+
| Jest | Test Runner | v29 | Standard test runner for JS apps |
8585
| Maestro | Testing Framework | | Automate end-to-end UI testing |
8686
| date-fns | Date library | v4 | Excellent date library |
8787
| react-native-keyboard-controller | Keyboard library | v1 | Great keyboard manager library |

boilerplate/app/components/EmptyState.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Image, ImageProps, ImageStyle, StyleProp, TextStyle, View, ViewStyle } from "react-native"
2-
import { translate } from "../i18n"
2+
33
import { Button, ButtonProps } from "./Button"
44
import { Text, TextProps } from "./Text"
55
import { useAppTheme } from "@/utils/useAppTheme"
66
import type { ThemedStyle } from "@/theme"
7+
import { translate } from "@/i18n/translate"
78

89
const sadFace = require("../../assets/images/sad-face.png")
910

boilerplate/app/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
View,
88
ViewStyle,
99
} from "react-native"
10-
import { isRTL, translate } from "../i18n"
10+
import { isRTL, translate } from "@/i18n"
1111
import { $styles } from "../theme"
1212
import { ExtendedEdge, useSafeAreaInsetsStyle } from "../utils/useSafeAreaInsetsStyle"
1313
import { Icon, IconTypes } from "./Icon"

boilerplate/app/components/Text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { TOptions } from "i18next"
22
import { StyleProp, Text as RNText, TextProps as RNTextProps, TextStyle } from "react-native"
3-
import { isRTL, translate, TxKeyPath } from "../i18n"
3+
import { isRTL, translate, TxKeyPath } from "@/i18n"
44
import type { ThemedStyle, ThemedStyleArray } from "@/theme"
55
import { useAppTheme } from "@/utils/useAppTheme"
66
import { typography } from "@/theme/typography"

boilerplate/app/components/TextField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
View,
1010
ViewStyle,
1111
} from "react-native"
12-
import { isRTL, translate } from "../i18n"
12+
import { isRTL, translate } from "@/i18n"
1313
import type { ThemedStyle, ThemedStyleArray } from "@/theme"
1414
import { $styles } from "../theme"
1515
import { Text, TextProps } from "./Text"

boilerplate/app/models/Episode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Instance, SnapshotIn, SnapshotOut, types } from "mobx-state-tree"
22
import { withSetPropAction } from "./helpers/withSetPropAction"
33
import { formatDate } from "../utils/formatDate"
4-
import { translate } from "../i18n"
4+
import { translate } from "@/i18n"
55

66
interface Enclosure {
77
link: string

boilerplate/app/navigators/DemoNavigator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CompositeScreenProps } from "@react-navigation/native"
33
import { TextStyle, ViewStyle } from "react-native"
44
import { useSafeAreaInsets } from "react-native-safe-area-context"
55
import { Icon } from "../components"
6-
import { translate } from "../i18n"
6+
import { translate } from "@/i18n"
77
import { DemoCommunityScreen, DemoShowroomScreen, DemoDebugScreen } from "../screens"
88
import { DemoPodcastListScreen } from "../screens/DemoPodcastListScreen"
99
import type { ThemedStyle } from "@/theme"

boilerplate/app/screens/DemoCommunityScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ListItem, Screen, Text } from "../components"
44
import { DemoTabScreenProps } from "../navigators/DemoNavigator"
55
import { $styles } from "../theme"
66
import { openLinkInBrowser } from "../utils/openLinkInBrowser"
7-
import { isRTL } from "../i18n"
7+
import { isRTL } from "@/i18n"
88
import type { ThemedStyle } from "@/theme"
99
import { useAppTheme } from "@/utils/useAppTheme"
1010

boilerplate/app/screens/DemoDebugScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Button, ListItem, Screen, Text } from "../components"
1313
import { DemoTabScreenProps } from "../navigators/DemoNavigator"
1414
import type { ThemedStyle } from "@/theme"
1515
import { $styles } from "../theme"
16-
import { isRTL } from "../i18n"
16+
import { isRTL } from "@/i18n"
1717
import { useStores } from "../models"
1818
import { useAppTheme } from "@/utils/useAppTheme"
1919

boilerplate/app/screens/DemoPodcastListScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
Switch,
3232
Text,
3333
} from "@/components"
34-
import { isRTL, translate } from "../i18n"
34+
import { isRTL, translate } from "@/i18n"
3535
import { useStores } from "../models"
3636
import { Episode } from "../models/Episode"
3737
import { DemoTabScreenProps } from "../navigators/DemoNavigator"

0 commit comments

Comments
 (0)