I want to load an html file no my app depending on the device language. I already have the code to load an html file without checking the language but now i want to load a file with the format: filename_[LANGUAGE].html
here is my loadHtml code:
self.htmlFile = [_htmlFile stringByReplacingOccurrencesOfString:@".html" withString:@""];
NSString * htmlFilePath = [[NSBundle mainBundle] pathForResource:_htmlFile ofType:@"html"];
NSString * html = [NSString stringWithContentsOfFile:htmlFilePath encoding:NSUTF8StringEncoding error:nil];
what is the best way to do this?