Skip to content

Commit cd84979

Browse files
authored
v0.1.0 (#3)
1 parent 908af1f commit cd84979

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
name: Test
22

33
on:
4-
pull_request:
5-
branches:
6-
- 'master'
74
push:
85
branches:
96
- '*'
10-
paths-ignore:
11-
- 'README.md'
12-
- 'LICENSE'
13-
- 'CODE_OF_CONDUCT.md'
14-
- 'CONTRIBUTING.md'
7+
workflow_dispatch:
158

169
jobs:
1710
test:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You don't need to prepare any translation files, just provide your API key and t
99
## Features
1010

1111
- 🌐 React Native and Expo support
12-
- 🚀 Automatic string detection and translation
12+
- 🚀 Automatic string translation
1313
- 🎯 Dynamic parameter interpolation
1414
- 🔍 Persist translation tracking
1515
- 🔌 Offline mode support
@@ -125,7 +125,7 @@ Refer: https://docs.expo.dev/versions/latest/sdk/localization/
125125
import * as Localization from "expo-localization";
126126

127127
// Get the device locale
128-
const locale = const locale = Localization.getLocales()[0]?.languageCode;
128+
const locale = Localization.getLocales()[0]?.languageCode;
129129
```
130130

131131
Note: When running Expo in a web browser, it will use the browser's locale settings (navigator.language) automatically.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"name": "react-native-autolocalise",
4-
"version": "0.0.3-alpha.1",
4+
"version": "0.1.0",
55
"description": "Auto-translation SDK for React Native and Expo applications",
66
"main": "dist/index.js",
77
"module": "dist/index.esm.js",

src/services/translation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ export class TranslationService {
8484
this.pendingTranslations.forEach((persist, text) => {
8585
allTexts.push({ hashkey: this.generateHash(text), text, persist });
8686
});
87-
console.log("allTexts", allTexts);
8887
this.pendingTranslations.clear();
8988

9089
if (allTexts.length > 0) {
@@ -168,6 +167,7 @@ export class TranslationService {
168167
public translate(
169168
text: string,
170169
persist: boolean = true,
170+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
171171
reference?: string
172172
): string {
173173
if (!text || !this.isInitialized) return text;

0 commit comments

Comments
 (0)