Add iOS languages

This commit is contained in:
xmflsct 2022-09-24 14:39:54 +02:00
parent 398f37d599
commit 74d904a440
13 changed files with 39 additions and 26 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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";

View File

@ -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";

View File

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

View File

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

View File

@ -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>";

View File

@ -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";

View File

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

View File

@ -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