Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
fix: solve issues with strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoache1 committed Nov 25, 2022
1 parent f602eb7 commit 9b6856a
Show file tree
Hide file tree
Showing 16 changed files with 43 additions and 392 deletions.
5 changes: 0 additions & 5 deletions .typesafe-i18n.json

This file was deleted.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"snap-update": "jest --updateSnapshot",
"coverage": "jest --coverage",
"publish:release": "npm publish",
"semantic-release": "semantic-release",
"typesafe-i18n": "typesafe-i18n"
"semantic-release": "semantic-release"
},
"files": [
"build",
Expand Down Expand Up @@ -54,8 +53,7 @@
"figlet": "1.5.2",
"gluegun": "5.1.2",
"pino": "8.7.0",
"pino-pretty": "9.1.1",
"typesafe-i18n": "5.16.2"
"pino-pretty": "9.1.1"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.1",
Expand Down
11 changes: 0 additions & 11 deletions src/i18n/formatters.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/i18n/i18n-node.ts

This file was deleted.

208 changes: 0 additions & 208 deletions src/i18n/i18n-types.ts

This file was deleted.

26 changes: 0 additions & 26 deletions src/i18n/i18n-util.async.ts

This file was deleted.

24 changes: 0 additions & 24 deletions src/i18n/i18n-util.sync.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/i18n/i18n-util.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/i18n/index.ts

This file was deleted.

14 changes: 6 additions & 8 deletions src/i18n/en/index.ts → src/strings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { BaseTranslation } from '../i18n-types'

const en: BaseTranslation = {
export const strings = {
Github: {
Ask: {
Repo: 'Do you have a repository for the project?',
Expand All @@ -11,15 +9,17 @@ const en: BaseTranslation = {
Repository: 'In your project repository folder',
},
Error: {
logFile: `An error happens, for more info please check the log file {filePath:string}!`,
operation: 'Error: {message: string}',
logFile: (filePath: string) =>
`An error happens, for more info please check the log file ${filePath}!`,
operation: (message: string) => `Error: ${message}`,
},
Navigation: {
Ask: {
Config: 'Do you want to add React Navigation base config?',
},
DontForget: `DON'T FORGET TO MODIFY THIS IN ANDROID!`,
AddCode: 'Add the following code to the body of {activity: string} class:`',
AddCode: (activity: string) =>
`Add the following code to the body of ${activity} class:`,
makeSure: `and make sure to add an import statement at the top of this file:`,
},
Operations: {
Expand All @@ -34,5 +34,3 @@ const en: BaseTranslation = {
CloneRepoAndMoveProject: 'Cloning repo & moving RN project',
},
}

export default en
Loading

0 comments on commit 9b6856a

Please sign in to comment.