You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
476 B
Swift
23 lines
476 B
Swift
//
|
|
// LocalizedFromFlutter.swift
|
|
// Runner
|
|
//
|
|
// Created by ZiKambrani on 10/04/1442 AH.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class FlutterText{
|
|
|
|
class func with(key:String,completion: @escaping (String)->Void){
|
|
flutterMethodChannel?.invokeMethod("localizedValue", arguments: key, result: { (result) in
|
|
if let localized = result as? String{
|
|
completion(localized)
|
|
}else{
|
|
completion(key)
|
|
}
|
|
})
|
|
}
|
|
|
|
}
|