Skip to content

Commit 198118c

Browse files
committed
update package name
1 parent 4954411 commit 198118c

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

README.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,18 @@ You don't need to prepare any translation files, just provide your API key and t
1818

1919
## Installation
2020

21-
### React Native
22-
23-
```bash
24-
npm install react-autolocalise @react-native-async-storage/async-storage
25-
# or
26-
yarn add react-autolocalise @react-native-async-storage/async-storage
27-
```
28-
29-
### Expo
30-
3121
```bash
32-
npm install react-autolocalise expo-secure-store
22+
npm install react-native-autolocalise @react-native-async-storage/async-storage
3323
# or
34-
yarn add react-autolocalise expo-secure-store
24+
yarn add react-native-autolocalise @react-native-async-storage/async-storage
3525
```
3626

3727
## Usage
3828

3929
### 1. Initialize the SDK
4030

4131
```typescript
42-
import { TranslationProvider } from "react-autolocalise";
32+
import { TranslationProvider } from "react-native-autolocalise";
4333

4434
const App = () => {
4535
const config = {
@@ -62,7 +52,7 @@ const App = () => {
6252
Basic usage:
6353

6454
```typescript
65-
import { useAutoTranslate } from "react-autolocalise";
55+
import { useAutoTranslate } from "react-native-autolocalise";
6656

6757
const MyComponent = () => {
6858
const { t, loading, error } = useAutoTranslate();
@@ -79,7 +69,7 @@ const MyComponent = () => {
7969
Use with params:
8070

8171
```typescript
82-
import { useAutoTranslate } from "react-autolocalise";
72+
import { useAutoTranslate } from "react-native-autolocalise";
8373

8474
const MyComponent = () => {
8575
const { t } = useAutoTranslate();
@@ -172,15 +162,15 @@ Note: When running Expo in a web browser, it will use the browser's locale setti
172162
Returns an object with:
173163

174164
- `t`: Translation function
175-
- `loading`: Boolean indicating initialization of translations
165+
- `loading`: Boolean indicating initialization of static translations
176166
- `error`: Error object if translation loading failed
177167

178168
### Static persist
179169

180170
When you pass the 'static' parameter to the translation function, the translation will be persisted so that you can review and edit in the dashboard, default is non-static, nothing will be persisted.
181171

182172
```typescript
183-
import { useAutoTranslate } from "react-autolocalise";
173+
import { useAutoTranslate } from "react-native-autolocalise";
184174
const MyComponent = () => {
185175
const { t } = useAutoTranslate();
186176
return (

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"type": "module",
3-
"name": "react-autolocalise",
3+
"name": "react-native-autolocalise",
44
"version": "0.0.1",
55
"description": "Auto-translation SDK for React, React Native and Expo applications",
66
"main": "dist/index.js",
@@ -50,5 +50,12 @@
5050
"rollup": "^3.28.1",
5151
"ts-jest": "^29.1.1",
5252
"typescript": "^5.2.2"
53+
},
54+
"repository": {
55+
"type": "git",
56+
"url": "https://github.com/your-username/your-repo-name.git"
57+
},
58+
"bugs": {
59+
"url": "https://github.com/your-username/your-repo-name/issues"
5360
}
5461
}

0 commit comments

Comments
 (0)