mirror of
https://github.com/tooot-app/app
synced 2025-01-04 21:47:40 +01:00
Added zh-Hant
This commit is contained in:
parent
73e4497a38
commit
8bc59d3932
@ -76,6 +76,7 @@
|
|||||||
E633A427281EAEAB000E540F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
E633A427281EAEAB000E540F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
E633A42F281EAF38000E540F /* ShareViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ShareViewController.swift; path = "../../node_modules/react-native-share-menu/ios/ShareViewController.swift"; sourceTree = "<group>"; };
|
E633A42F281EAF38000E540F /* ShareViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ShareViewController.swift; path = "../../node_modules/react-native-share-menu/ios/ShareViewController.swift"; sourceTree = "<group>"; };
|
||||||
E633A431281EB55C000E540F /* ShareExtension-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ShareExtension-Bridging-Header.h"; sourceTree = "<group>"; };
|
E633A431281EB55C000E540F /* ShareExtension-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ShareExtension-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||||
|
E671BDF8290EAFB800287BD0 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
|
||||||
E69EBACA28DF282D0057EDEC /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
E69EBACA28DF282D0057EDEC /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
E69EBACB28DF283A0057EDEC /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
E69EBACB28DF283A0057EDEC /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
E69EBACC28DF28420057EDEC /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
E69EBACC28DF28420057EDEC /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
@ -289,6 +290,7 @@
|
|||||||
"pt-BR",
|
"pt-BR",
|
||||||
vi,
|
vi,
|
||||||
ja,
|
ja,
|
||||||
|
"zh-Hant",
|
||||||
);
|
);
|
||||||
mainGroup = 83CBB9F61A601CBA00E9B192;
|
mainGroup = 83CBB9F61A601CBA00E9B192;
|
||||||
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
|
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
|
||||||
@ -514,6 +516,7 @@
|
|||||||
E69EBACD28DF284D0057EDEC /* pt-BR */,
|
E69EBACD28DF284D0057EDEC /* pt-BR */,
|
||||||
E69EBACE28DF28560057EDEC /* vi */,
|
E69EBACE28DF28560057EDEC /* vi */,
|
||||||
E6C8B26628F5F9FC0062CF2E /* ja */,
|
E6C8B26628F5F9FC0062CF2E /* ja */,
|
||||||
|
E671BDF8290EAFB800287BD0 /* zh-Hant */,
|
||||||
);
|
);
|
||||||
name = InfoPlist.strings;
|
name = InfoPlist.strings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
2
ios/zh-Hant.lproj/InfoPlist.strings
Normal file
2
ios/zh-Hant.lproj/InfoPlist.strings
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
"NSPhotoLibraryAddUsageDescription" = "允許tooot保存圖片至相冊";
|
||||||
|
"NSPhotoLibraryUsageDescription" = "允許tooot保存圖片至相冊";
|
@ -9,6 +9,7 @@ import ko from '@root/i18n/ko/_all'
|
|||||||
import pt_BR from '@root/i18n/pt_BR/_all'
|
import pt_BR from '@root/i18n/pt_BR/_all'
|
||||||
import vi from '@root/i18n/vi/_all'
|
import vi from '@root/i18n/vi/_all'
|
||||||
import zh_Hans from '@root/i18n/zh-Hans/_all'
|
import zh_Hans from '@root/i18n/zh-Hans/_all'
|
||||||
|
import zh_Hant from '@root/i18n/zh-Hant/_all'
|
||||||
|
|
||||||
import '@formatjs/intl-getcanonicallocales/polyfill'
|
import '@formatjs/intl-getcanonicallocales/polyfill'
|
||||||
import '@formatjs/intl-locale/polyfill'
|
import '@formatjs/intl-locale/polyfill'
|
||||||
@ -32,6 +33,7 @@ import '@formatjs/intl-numberformat/locale-data/ko'
|
|||||||
import '@formatjs/intl-numberformat/locale-data/pt'
|
import '@formatjs/intl-numberformat/locale-data/pt'
|
||||||
import '@formatjs/intl-numberformat/locale-data/vi'
|
import '@formatjs/intl-numberformat/locale-data/vi'
|
||||||
import '@formatjs/intl-numberformat/locale-data/zh-Hans'
|
import '@formatjs/intl-numberformat/locale-data/zh-Hans'
|
||||||
|
import '@formatjs/intl-numberformat/locale-data/zh-Hant'
|
||||||
|
|
||||||
import '@formatjs/intl-datetimeformat/polyfill'
|
import '@formatjs/intl-datetimeformat/polyfill'
|
||||||
import '@formatjs/intl-datetimeformat/locale-data/de'
|
import '@formatjs/intl-datetimeformat/locale-data/de'
|
||||||
@ -42,6 +44,7 @@ import '@formatjs/intl-datetimeformat/locale-data/ko'
|
|||||||
import '@formatjs/intl-datetimeformat/locale-data/pt'
|
import '@formatjs/intl-datetimeformat/locale-data/pt'
|
||||||
import '@formatjs/intl-datetimeformat/locale-data/vi'
|
import '@formatjs/intl-datetimeformat/locale-data/vi'
|
||||||
import '@formatjs/intl-datetimeformat/locale-data/zh-Hans'
|
import '@formatjs/intl-datetimeformat/locale-data/zh-Hans'
|
||||||
|
import '@formatjs/intl-datetimeformat/locale-data/zh-Hant'
|
||||||
import '@formatjs/intl-datetimeformat/add-all-tz'
|
import '@formatjs/intl-datetimeformat/add-all-tz'
|
||||||
|
|
||||||
import '@formatjs/intl-relativetimeformat/polyfill'
|
import '@formatjs/intl-relativetimeformat/polyfill'
|
||||||
@ -53,6 +56,7 @@ import '@formatjs/intl-relativetimeformat/locale-data/ko'
|
|||||||
import '@formatjs/intl-relativetimeformat/locale-data/pt'
|
import '@formatjs/intl-relativetimeformat/locale-data/pt'
|
||||||
import '@formatjs/intl-relativetimeformat/locale-data/vi'
|
import '@formatjs/intl-relativetimeformat/locale-data/vi'
|
||||||
import '@formatjs/intl-relativetimeformat/locale-data/zh-Hans'
|
import '@formatjs/intl-relativetimeformat/locale-data/zh-Hans'
|
||||||
|
import '@formatjs/intl-relativetimeformat/locale-data/zh-Hant'
|
||||||
|
|
||||||
i18n.use(initReactI18next).init({
|
i18n.use(initReactI18next).init({
|
||||||
lng: 'en',
|
lng: 'en',
|
||||||
@ -61,7 +65,7 @@ i18n.use(initReactI18next).init({
|
|||||||
ns: ['common'],
|
ns: ['common'],
|
||||||
defaultNS: 'common',
|
defaultNS: 'common',
|
||||||
|
|
||||||
resources: { de, en, it, ja, ko, 'pt-BR': pt_BR, vi, 'zh-Hans': zh_Hans },
|
resources: { de, en, it, ja, ko, 'pt-BR': pt_BR, vi, 'zh-Hans': zh_Hans, 'zh-Hant': zh_Hant },
|
||||||
returnEmptyString: false,
|
returnEmptyString: false,
|
||||||
|
|
||||||
saveMissing: true,
|
saveMissing: true,
|
||||||
|
@ -6,7 +6,8 @@ const LOCALES = {
|
|||||||
ko: '한국어',
|
ko: '한국어',
|
||||||
'pt-BR': 'Português (Brasil)',
|
'pt-BR': 'Português (Brasil)',
|
||||||
vi: 'Tiếng Việt',
|
vi: 'Tiếng Việt',
|
||||||
'zh-Hans': '简体中文'
|
'zh-Hans': '简体中文',
|
||||||
|
'zh-Hant': '繁體中文'
|
||||||
}
|
}
|
||||||
|
|
||||||
export { LOCALES }
|
export { LOCALES }
|
||||||
|
18
src/i18n/zh-Hant/_all.ts
Normal file
18
src/i18n/zh-Hant/_all.ts
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
export default {
|
||||||
|
common: require('./common'),
|
||||||
|
|
||||||
|
screens: require('./screens'),
|
||||||
|
screenActions: require('./screens/actions'),
|
||||||
|
screenAnnouncements: require('./screens/announcements'),
|
||||||
|
screenCompose: require('./screens/compose'),
|
||||||
|
screenImageViewer: require('./screens/imageViewer'),
|
||||||
|
screenTabs: require('./screens/tabs'),
|
||||||
|
|
||||||
|
componentContextMenu: require('./components/contextMenu'),
|
||||||
|
componentEmojis: require('./components/emojis'),
|
||||||
|
componentInstance: require('./components/instance'),
|
||||||
|
componentMediaSelector: require('./components/mediaSelector'),
|
||||||
|
componentParse: require('./components/parse'),
|
||||||
|
componentRelationship: require('./components/relationship'),
|
||||||
|
componentTimeline: require('./components/timeline')
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user