Browse Source

Add iOS languages

pull/396/head
xmflsct 2 months ago
parent
commit
74d904a440
  1. 2
      fastlane/Deliverfile
  2. 1
      fastlane/metadata/default/release_notes.txt
  3. 2
      fastlane/metadata/en-US/release_notes.txt
  4. 2
      fastlane/metadata/zh-Hans/release_notes.txt
  5. 2
      ios/de.lproj/InfoPlist.strings
  6. 12
      ios/en.lproj/InfoPlist.strings
  7. 2
      ios/it.lproj/InfoPlist.strings
  8. 2
      ios/ko.lproj/InfoPlist.strings
  9. 2
      ios/pt-BR.lproj/InfoPlist.strings
  10. 15
      ios/tooot.xcodeproj/project.pbxproj
  11. 2
      ios/vi.lproj/InfoPlist.strings
  12. 10
      ios/zh-Hans.lproj/InfoPlist.strings
  13. 11
      src/screens/Tabs/Me/Settings/Dev.tsx

2
fastlane/Deliverfile

@ -1,5 +1,3 @@
languages(['de-DE', 'en-US', 'it', 'ko', 'pt-BR', 'vi', 'zh-Hans'])
name({
'default' => "tooot"
})

1
fastlane/metadata/default/release_notes.txt

@ -1 +0,0 @@
../en-US/release_notes.txt

2
fastlane/metadata/en-US/release_notes.txt

@ -1,2 +0,0 @@
Support selecting multiple images
Long press toot to show options

2
fastlane/metadata/zh-Hans/release_notes.txt

@ -1,2 +0,0 @@
支持同时上传多张图片
长按嘟文弹出嘟文选项

2
ios/de.lproj/InfoPlist.strings

@ -0,0 +1,2 @@
"NSPhotoLibraryAddUsageDescription" = "Erlauben Sie tooot, Bilder in Ihrer Kamerarolle zu speichern";
"NSPhotoLibraryUsageDescription" = "Erlauben Sie tooot, Bilder in Ihrer Kamerarolle zu speichern";

12
ios/en.lproj/InfoPlist.strings

@ -1,10 +1,2 @@
/*
InfoPlist.strings
tooot
Created by Zheng Zhiyuan (SEBD) on 2021-04-16.
*/
"NSPhotoLibraryAddUsageDescription" = "Allow tooot to save an image to your camera roll";
"NSPhotoLibraryUsageDescription" = "Allow tooot to access your camera roll to attach photos or videos to your toot";
"NSPhotoLibraryAddUsageDescription" = "Allow tooot to save images to your camera roll";
"NSPhotoLibraryUsageDescription" = "Allow tooot to save images to your camera roll";

2
ios/it.lproj/InfoPlist.strings

@ -0,0 +1,2 @@
"NSPhotoLibraryAddUsageDescription" = "Consentire a tooot di salvare le immagini nel rullino fotografico";
"NSPhotoLibraryUsageDescription" = "Consentire a tooot di salvare le immagini nel rullino fotografico";

2
ios/ko.lproj/InfoPlist.strings

@ -0,0 +1,2 @@
"NSPhotoLibraryAddUsageDescription" = "tooot가 이미지를 카메라 롤에 저장하도록 허용";
"NSPhotoLibraryUsageDescription" = "tooot가 이미지를 카메라 롤에 저장하도록 허용";

2
ios/pt-BR.lproj/InfoPlist.strings

@ -0,0 +1,2 @@
"NSPhotoLibraryAddUsageDescription" = "Permita guardar imagens em seu rolo de câmera";
"NSPhotoLibraryUsageDescription" = "Permita guardar imagens em seu rolo de câmera";

15
ios/tooot.xcodeproj/project.pbxproj

@ -76,6 +76,11 @@
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>"; };
E633A431281EB55C000E540F /* ShareExtension-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ShareExtension-Bridging-Header.h"; 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>"; };
E69EBACC28DF28420057EDEC /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/InfoPlist.strings; sourceTree = "<group>"; };
E69EBACD28DF284D0057EDEC /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
E69EBACE28DF28560057EDEC /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/InfoPlist.strings; sourceTree = "<group>"; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
/* End PBXFileReference section */
@ -277,6 +282,11 @@
en,
Base,
"zh-Hans",
de,
it,
ko,
"pt-BR",
vi,
);
mainGroup = 83CBB9F61A601CBA00E9B192;
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
@ -496,6 +506,11 @@
children = (
5EE088CA26297820007E5FEC /* en */,
5EE088CD2629786B007E5FEC /* zh-Hans */,
E69EBACA28DF282D0057EDEC /* de */,
E69EBACB28DF283A0057EDEC /* it */,
E69EBACC28DF28420057EDEC /* ko */,
E69EBACD28DF284D0057EDEC /* pt-BR */,
E69EBACE28DF28560057EDEC /* vi */,
);
name = InfoPlist.strings;
sourceTree = "<group>";

2
ios/vi.lproj/InfoPlist.strings

@ -0,0 +1,2 @@
"NSPhotoLibraryAddUsageDescription" = "Cho phép quá nhiều để lưu hình ảnh vào thư viện ảnh của bạn";
"NSPhotoLibraryUsageDescription" = "Cho phép quá nhiều để lưu hình ảnh vào thư viện ảnh của bạn";

10
ios/zh-Hans.lproj/InfoPlist.strings

@ -1,10 +1,2 @@
/*
InfoPlist.strings
tooot
Created by Zheng Zhiyuan (SEBD) on 2021-04-16.
*/
"NSPhotoLibraryAddUsageDescription" = "允许tooot保存图片至相册";
"NSPhotoLibraryUsageDescription" = "允许tooot读取相册图片或视频,以添加嘟文附件";
"NSPhotoLibraryUsageDescription" = "允许tooot保存图片至相册";

11
src/screens/Tabs/Me/Settings/Dev.tsx

@ -7,6 +7,7 @@ import { persistor } from '@root/store'
import { getInstanceActive, getInstances } from '@utils/slices/instancesSlice'
import { StyleConstants } from '@utils/styles/constants'
import { useTheme } from '@utils/styles/ThemeManager'
import * as Localization from 'expo-localization'
import React from 'react'
import { DevSettings } from 'react-native'
import { useSelector } from 'react-redux'
@ -19,6 +20,16 @@ const SettingsDev: React.FC = () => {
return (
<MenuContainer>
<CustomText
fontStyle='S'
selectable
style={{
paddingHorizontal: StyleConstants.Spacing.Global.PagePadding,
color: colors.primaryDefault
}}
>
{JSON.stringify(Localization.locales)}
</CustomText>
<CustomText
fontStyle='S'
selectable

Loading…
Cancel
Save