Comments (31)
any news about this? @MoathOthman
from molh.
from molh.
from molh.
yes i did tried it .. i will try doing that and let you know ..
from molh.
i just tried but didn't know how to do it x_x
but i think this happened when i used MOLHLanguage.isArabic()
from molh.
from molh.
got same error ...
trie to comment them all .. and worked without errors .. so the problem is really from MOLHLanguage.isArabic() and MOLHLanguage.isRTL()
but i need to know if its arabic or not so i need to use one of them :(
if you please can help me solve this
thanks in advance!
from molh.
from molh.
just two .. english and arabic
from molh.
can you replace the function with this
/// get current Apple language
public class func currentAppleLanguage() -> String {
let userdef = UserDefaults.standard
let langArray = userdef.object(forKey: APPLE_LANGUAGE_KEY) as! NSArray
let current = langArray.firstObject as! String
let currentWithoutLocale = current.substring(to: current.index(current.startIndex, offsetBy: 2))
return currentWithoutLocale
}
from molh.
got the same error in next function ...
from molh.
from molh.
you mean just to do pod update?
or do you have a version number to add in podfile?
sorry i didn't really get what do you mean x_x
from molh.
@lamatat you can use pod 'MOLH',:git => 'https://github.com/MoathOthman/MOLH.git'
from molh.
i got this [!] Unable to find a specification for 'MOLH'.
from molh.
i got this [!] Unable to find a specification for 'MOLH'.
its fixed now , thanx for pointing it out. please try again.
from molh.
am getting the same error even after updating the pod
from molh.
@lamatat can you debug it , print the result of userdef.object(forkey: ....)
from molh.
got this:
Optional(<__NSSingleObjectArrayI 0x125d6bd70>(
ar
)
)
before crashing...
from molh.
NSSingleObjectArray!, interesting , I think you have only one language for the device which is arabic, right? , if you go to settings app -> general -> languages , you should see one language, right?
from molh.
no there's 2 .. english and arabic
from molh.
sorry i was running the app with arabic language x_x
now changed it to system language and got this:
Optional(<__NSCFArray 0x13de224a0>(
ar,
en
)
)
from molh.
@lamatat do you still get the crash then?
from molh.
yes i do
same crash as the screenshot above
from molh.
mmmm, thats really weird. is there any environment factors you have, did you try it on device while not in debug mode?
I updated the code to swift 4 , can you pod install again and try?
from molh.
same :(
please help me solve this T_T
from molh.
found out something ...
this is only happens when used in: class TextField: UITextField for example...
any idea?
from molh.
@lamatat since textfield functionality is not that perfect,
comment out the line where its swizzled ..
swizzle(class:UITextField.self, sel: #selector(UITextField.layoutSubviews), override: #selector(UITextField.cstmlayoutSubviews))
from molh.
just found something ...
this has nothing to do with your library ...
because i have tried:
let pre = Locale.preferredLanguages.first
if pre == "ar"{
......
}
and got the same error! which is really wired!
sorry for all the trouble but it has nothing to do with your awesome library :)
i have another question i will open new issue if you please can check it out .. thanks
from molh.
from molh.
sure.. thanks you :)!
from molh.
Related Issues (20)
- application restart not working as well HOT 10
- Label's font doesn't change with language (Localization) HOT 1
- App Getting Crashed for iOS 13 HOT 9
- Language of UIActivityViewController Does not change when Reset HOT 16
- Kurdish language corrupted text HOT 14
- Can’t embed molh in objective c project HOT 1
- images flip even I forced it to LTR
- Not work fine with Zendesk Chat HOT 7
- reset func not work in version 1.3 HOT 6
- set Default Language to Arabic not working right on first run HOT 19
- Language not changed on camera icons and toolbar
- when change language to Urdu or Arabic and run app , texts font changed to this font HOT 1
- after update xcode and swift version HOT 16
- UIDatePicker & UISearchBar not changing language after reset HOT 3
- i have to close and open app to make view flipped case arabic language is ok but view still not flipped on first time run HOT 1
- Apple pay button text is not localised when we change the language from app but when app is restarted it works fine
- numbers language does not change after localization till restarting the app HOT 4
- App Crash Randomly HOT 3
- Regressed crash in MOLH file HOT 2
- Back button direction wrong
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from molh.