Localize-Swift | Swift friendly localization and i18n with in-app language switching | Internationalization library
kandi X-RAY | Localize-Swift Summary
kandi X-RAY | Localize-Swift Summary
Swift friendly localization and i18n with in-app language switching
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Localize-Swift
Localize-Swift Key Features
Localize-Swift Examples and Code Snippets
Community Discussions
Trending Discussions on Localize-Swift
QUESTION
Recently I removed Fabric
from project and installed Firebase/Crashlytics
instead. After that when I try to upload app to AppStore using fastlane
or do it using native Xcode tools I faced with such error:
ANSWER
Answered 2020-Jun-15 at 15:46Current version of Firebase require at least Xcode 10.3. Details at https://firebase.google.com/docs/ios/setup
QUESTION
I have a big project using localization. As for now, I'm using library:
'Localize-Swift', '2.0.0'
to make localization easier.
But since I upgraded my xcode to the latest version 10.0 from version 9.4.1 some of the localization strings are having a problem such as this :
xcodebuild: error: unexpected duplicate task: CopyStringsFile /Users/myName/Library/Developer/Xcode/DerivedData/App-cxnnzigdonvocggyjllrudhwfpwq/Build/Products/Release-iphonesimulator/myProject/myProject.framework/jp.lproj/Localizable_Chat.strings myProject/myProject/Core/Resources/jp.lproj/Localizable_Chat.strings (in target 'myProject')
I figured there seems to be nothing wrong with the localization library since apparently there are 4 strings to validate on pod spec lint, but 1 string DID passed.
Difference between those strings :
- String passed pod spec lint validation comes from the storyboard.
- Strings with above error comes from Xibs.
Edited :
...I already tried both cocoapods 1.5.3 and 1.6.0 and it's still not working.
ANSWER
Answered 2018-Oct-20 at 14:08Update : This was fixed with the new Xcode 10.1 Beta 3
QUESTION
I have been developed an app that needs to use localization so I've chosen this nice library for my application. but I just confuse that in their document mention that they need to use observer notification to listen to when language has changed. but in my main controller, I just do what they said and it's working like a charm but when I add localization to my sidebar text. I got this error:
reason: '-[NSConcreteNotification length]: unrecognized selector sent to instance 0x107cbb9f0'
but if I remove the observer inside the sidebar controller. it'll be working fine. So My Question is why do some controller need to add an observer to work but some doesn't need to add it to work
This is MySidebar Controller:
...ANSWER
Answered 2018-Aug-23 at 02:27Signature of selector must have Notification
as an argument not String
. Like this
QUESTION
When attempting to build my Swift 4 project in Xcode 9 beta 2, some code signing error occurs after which the build of my app is discontinued.
The error that is shown in Xcode:
...ANSWER
Answered 2017-Jun-28 at 08:02I found out what's wrong! Xcode continued using the .xcodeproj
file to open my project when selecting it on the welcome screen, but Cocoapods
requires the .xcworkspace
file to be used! There's a visual distinction between both entries on Xcode's Welcome screen afterwards: difference between Xcode workspace and project on Welcome screen.
Opening the workspace shows two projects in Xcode's Project Navigator
: one for my app and a second one named Pods
, which embodies all installed pods. Building the app no longer shows weird build errors.
QUESTION
I'm using the pod Localize which is a language switch tool.
My app has a preferences menu where users can change app language from the list.
When user changes the language I'm also setting the AppleLanguages
key in UserDefaults
ANSWER
Answered 2017-Sep-15 at 10:12Yes, user will always get the notification in user's preferredlanguage which is set by iPhone preferences because Apple never recommend changing language from the app itself. If you do it then you will need to localize the notification content on your server and before sending push to any user, you will need to check the language of your app that user is using in. And then send notification in the application selected language. No matters what language is selected in device settings.
Hope it helps. If you have any confusion, feel free to comment.
QUESTION
After upgrade Xcode from 8.2.1 to 8.3, the error was happened with the RMActionController library, every time create RMAction instance.
for example:
...ANSWER
Answered 2017-Apr-05 at 19:02From debugging my own Segmentation Fault 11 issues I see a common suggestion that sometimes works is removing/reinstalling your dependency - that has never helped me, but worth trying.
Having a quick look at RMActionController
project you might want to investigate creating your action at step #1 with the action handler closure (even just an empty closure) and see if that helps e.g.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Localize-Swift
Select File > Swift Packages > Add Package Dependency. Enter https://github.com/marmelroy/Localize-Swift.git in the "Choose Package Repository" dialog.
In the next page, specify the version resolving rule as "Up to Next Major" with "3.2.0".
After Xcode checked out the source and resolving the version, you can choose the "Localize-Swift" library and add it to your app target.
Carthage is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page