Skip to content

Commit

Permalink
chore: enable Turkish language (#254)
Browse files Browse the repository at this point in the history
* Enable turkish language

* Set default locale en
  • Loading branch information
muhsin-k committed Dec 27, 2020
1 parent 4a14a6a commit 5e60f69
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -35,6 +35,7 @@ android/app/.settings
android/app/bin
android/app/.project
android/app/.classpath
android/app/gradle.properties

# node.js
#
Expand Down
8 changes: 4 additions & 4 deletions ios/Chatwoot.xcodeproj/project.pbxproj
Expand Up @@ -19,8 +19,8 @@
64D9625575F77BD47C5851DF /* libPods-Chatwoot-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F2B1FFDA6E6343B47BC9E453 /* libPods-Chatwoot-tvOS.a */; };
7E685E9D9DDC49E9BA58EB30 /* Inter-SemiBold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 1657932CABA047399278A2E6 /* Inter-SemiBold.otf */; };
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
832C0A1F259851C200694635 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 832C0A1E259851C200694635 /* GoogleService-Info.plist */; };
83956CC224F976FB0003A30E /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 83956CC124F976FB0003A30E /* SplashScreen.storyboard */; };
83D084B824F942190025AECA /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 83D084B724F942190025AECA /* GoogleService-Info.plist */; };
8E2A250F569B47F086A90867 /* Inter-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = 14CA8ED9FD7F4A98A9489302 /* Inter-Regular.otf */; };
8FBF7560704C5C2D98655077 /* libPods-Chatwoot.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 07BA2DA5BE3430A90F49C925 /* libPods-Chatwoot.a */; };
977F2FD7078A4591BFC36ADC /* Inter-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 68C4886F5FE94640BB89B6C9 /* Inter-Bold.otf */; };
Expand Down Expand Up @@ -72,8 +72,8 @@
5A455B5B324B4ED38F4F3D6E /* Inter-Light.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Inter-Light.otf"; path = "../assets/Inter-Light.otf"; sourceTree = "<group>"; };
68C4886F5FE94640BB89B6C9 /* Inter-Bold.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Inter-Bold.otf"; path = "../assets/Inter-Bold.otf"; sourceTree = "<group>"; };
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = Chatwoot/LaunchScreen.storyboard; sourceTree = "<group>"; };
832C0A1E259851C200694635 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "../../../../Downloads/GoogleService-Info.plist"; sourceTree = "<group>"; };
83956CC124F976FB0003A30E /* SplashScreen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = SplashScreen.storyboard; sourceTree = "<group>"; };
83D084B724F942190025AECA /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
83D084B924F942850025AECA /* Chatwoot.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = Chatwoot.entitlements; path = Chatwoot/Chatwoot.entitlements; sourceTree = "<group>"; };
94E7ACE34E06465C9425AC50 /* Inter-Italic.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Inter-Italic.otf"; path = "../assets/Inter-Italic.otf"; sourceTree = "<group>"; };
9CA6CE2540CBE0FCA1A9A85A /* Pods-Chatwoot.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Chatwoot.release.xcconfig"; path = "Target Support Files/Pods-Chatwoot/Pods-Chatwoot.release.xcconfig"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -205,8 +205,8 @@
83CBB9F61A601CBA00E9B192 = {
isa = PBXGroup;
children = (
832C0A1E259851C200694635 /* GoogleService-Info.plist */,
83956CC124F976FB0003A30E /* SplashScreen.storyboard */,
83D084B724F942190025AECA /* GoogleService-Info.plist */,
13B07FAE1A68108700A75B9A /* Chatwoot */,
832341AE1AAA6A7D00B99B32 /* Libraries */,
00E356EF1AD99517003FC87E /* ChatwootTests */,
Expand Down Expand Up @@ -378,12 +378,12 @@
files = (
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
83D084B824F942190025AECA /* GoogleService-Info.plist in Resources */,
83956CC224F976FB0003A30E /* SplashScreen.storyboard in Resources */,
977F2FD7078A4591BFC36ADC /* Inter-Bold.otf in Resources */,
FF3996F6DCE949368ACEA001 /* Inter-Italic.otf in Resources */,
F18A87F7463F4EFB8421C4C2 /* Inter-Light.otf in Resources */,
D9DE12D61C5641488B613496 /* Inter-Medium.otf in Resources */,
832C0A1F259851C200694635 /* GoogleService-Info.plist in Resources */,
8E2A250F569B47F086A90867 /* Inter-Regular.otf in Resources */,
7E685E9D9DDC49E9BA58EB30 /* Inter-SemiBold.otf in Resources */,
);
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Expand Up @@ -657,4 +657,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 359eeed31941826235cdc4a3c6b998cb2e176764

COCOAPODS: 1.8.4
COCOAPODS: 1.10.0
1 change: 1 addition & 0 deletions src/constants/index.js
Expand Up @@ -42,6 +42,7 @@ export const INBOX_IMAGES = {
export const LANGUAGES = {
en: 'English',
nl: 'Dutch',
tr: 'Turkish',
};

export const URL_REGEX = {
Expand Down
5 changes: 3 additions & 2 deletions src/i18n/index.js
Expand Up @@ -2,9 +2,10 @@ import i18n from 'i18n-js';

import en from './en.json';
import nl from './nl.json';
import tr from './tr.json';

// i18n.locale = 'en';
i18n.locale = 'en';
i18n.fallbacks = true;
i18n.translations = { en, nl };
i18n.translations = { en, nl, tr };

export default i18n;

0 comments on commit 5e60f69

Please sign in to comment.