hyperoslo/BarcodeScanner

Add a new language

Closed this issue · 5 comments

I need Japanese Localizable.strings added. How can I do that?

Why did you close this without comment?

3lvis commented

Hi @daverBellus3D, I'm sorry but had to close old issues so I can start following up on new issues. If this is still an issue for you I'm happy to reopen it. Again, sorry for the lack of communication.

You can localize the title and close button

    let viewController = BarcodeScannerViewController()
      
    viewController.headerViewController.titleLabel.text = "Page_Title_Scan_Barcode".localized
    viewController.headerViewController.closeButton.setTitle("btn_Close".localized, for: .normal)
    
    viewController.codeDelegate = self
    viewController.errorDelegate = self
    viewController.dismissalDelegate = self
    return viewController
3lvis commented

Thanks @Firas-Shrourou,

This should fix it.