This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL := /bin/bash | |
PHONY: help | |
help: | |
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | |
clean: ## Clean the project using cargo | |
cargo clean | |
build: ## Build the project using cargo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
private class Localizer { | |
static let sharedInstance = Localizer() | |
lazy var localizableDictionary: NSDictionary! = { | |
if let path = Bundle.main.path(forResource: "Localizable", ofType: "plist") { | |
return NSDictionary(contentsOfFile: path) | |
} |