文件名称:L.swift:[不建议使用]不推荐使用L.Swift。 您可以改用R.swift
文件大小:12KB
文件格式:ZIP
更新时间:2024-05-20 13:17:36
Swift
斯威夫特 受启发,命令行工具在Swift中获取强类型的,自动完成的本地化字符串。 用法 在将L.swift安装到您的项目中之后,您可以使用L-struct访问本地化的字符串。 如果该结构已过时,则只需构建即可,L.swift将纠正所有丢失/更改/添加的资源。 L.swift支持点分隔键。 钥匙 斯威夫特 "One" L.one (return NSLocalizedString("One", comment: "") "One.Two" L.One.two (return NSLocalizedString("One.Two", comment: "") "One.Two.Three" L.One.Two.three (return NSLocalizedString("One.Two.Three", comment: "") 安装 可可豆 将pod 'L.swift'添加
【文件预览】:
L.swift-master
----L.swift.podspec(445B)
----L.swift()
--------main.swift(3KB)
--------structures.swift(3KB)
----LICENSE(1KB)
----.gitignore(635B)
----L.swift.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(11KB)
--------xcshareddata()
----README.md(3KB)
----L.swiftTests()
--------Info.plist(733B)
--------L_swiftTests.swift(962B)