Skip to content

Commit

Permalink
feat(translation): Add Galician translation (#452)
Browse files Browse the repository at this point in the history
* feat($translation): Add Galician translation

Add ga.js file to .../languages, plus modify some related files

BREAKING CHANGE: New translation

#421

* refactor($translation): Change flag icon, update translation

Change on flag icon sortcode and updated some details in the translation file

BREAKING CHANGE: none

none
  • Loading branch information
siderio2 authored and Houssein Djirdeh committed Oct 8, 2017
1 parent 821aeca commit 98e5880
Show file tree
Hide file tree
Showing 6 changed files with 357 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ios/GitPoint.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
Expand Down Expand Up @@ -71,6 +70,7 @@
DC5C35ED1E37AD1800F3F526 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = DC5C35E31E37AD1800F3F526 /* SimpleLineIcons.ttf */; };
DC5C35EE1E37AD1800F3F526 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = DC5C35E41E37AD1800F3F526 /* Zocial.ttf */; };
EB0F176BE52B4561B9FF07AB /* libReactNativeConfig.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D7043BDB577E427391ECFBB0 /* libReactNativeConfig.a */; };
CBC20ECDD7FF46A49DF646D6 /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 20A722EC74A74B50BD5DCCC9 /* Feather.ttf */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -438,6 +438,7 @@
EE0605281E45441288EA9435 /* RNDeviceInfo.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNDeviceInfo.xcodeproj; path = "../node_modules/react-native-device-info/RNDeviceInfo.xcodeproj"; sourceTree = "<group>"; };
F01012DEC16A4179879AD390 /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = SimpleLineIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = "<group>"; };
FBD0F4CBD299403498005E08 /* Nunito-SemiBold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Nunito-SemiBold.ttf"; path = "../src/assets/fonts/Nunito-SemiBold.ttf"; sourceTree = "<group>"; };
20A722EC74A74B50BD5DCCC9 /* Feather.ttf */ = {isa = PBXFileReference; name = "Feather.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -630,6 +631,7 @@
ED1B22A89E134AA89E251577 /* Nunito-Light.ttf */,
78A9FAE6B34B4FAC9F27CBC3 /* Nunito-Regular.ttf */,
FBD0F4CBD299403498005E08 /* Nunito-SemiBold.ttf */,
20A722EC74A74B50BD5DCCC9 /* Feather.ttf */,
);
name = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -1359,6 +1361,7 @@
5DC6C311356B4973AE2599BF /* Nunito-Light.ttf in Resources */,
B66611A59CDF49A19C845B57 /* Nunito-Regular.ttf in Resources */,
4A0E0CE9909244398A873436 /* Nunito-SemiBold.ttf in Resources */,
CBC20ECDD7FF46A49DF646D6 /* Feather.ttf in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
1 change: 1 addition & 0 deletions ios/GitPoint/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<string>Nunito-Light.ttf</string>
<string>Nunito-Regular.ttf</string>
<string>Nunito-SemiBold.ttf</string>
<string>Feather.ttf</string>
</array>
<key>UIRequiredDeviceCapabilities</key>
<array>
Expand Down
5 changes: 5 additions & 0 deletions src/auth/screens/language-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ export default [
emojiCode: ':flag-ru:',
name: 'Русский',
},
{
code: 'gl',
emojiCode: ':waving_white_flag:',
name: 'Galego',
},
];
3 changes: 2 additions & 1 deletion src/locale/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AsyncStorage } from 'react-native';
import I18n from 'react-native-i18n';
import { en, fr, nl, pt, ptBr, tr, ru } from './languages';
import { en, fr, nl, pt, ptBr, tr, ru, gl } from './languages';

I18n.fallbacks = true;

Expand All @@ -12,6 +12,7 @@ I18n.translations = {
pt,
'pt-br': ptBr,
ru,
gl,
};

export default I18n;
Expand Down
Loading

0 comments on commit 98e5880

Please sign in to comment.