konrad1977 / loco Goto Github PK
View Code? Open in Web Editor NEWA linter for Swift Localizations
License: MIT License
A linter for Swift Localizations
License: MIT License
Hi @konrad1977
Creating a separate issue
I did update to the latest version. It doesn't coght all the strings for me.
I was able to fix this by altering the RegexPattern
file like this:
static var sourceRegex: String {
buildSourceRegex(
[
"\\.navigationTitle",
"Label",
"DatePicker",
"Text",
"Picker",
"Button",
"Toggle",
"LocalizedStringKey",
"NSLocalizedString",
"String\\(localized:",
"MyLocalizedString\\(",
]
)
}
also, I was trying to add a reg exps but failed for now for such cases:
let arrayOfLocalizedKeys = ["key_1", "key_2"];
let key = resourceAvailable ? "key_1" : "key_2";
enum States: String {
case online = "online_key"
case offline = "ofline_key"
}
or maybe there is a way to suppress individual strings.
When using Loco on a project that has SwiftGen's generated enums, Loco shows warnings that the localized keys are unused.
Feature Request:
it would be great if Loco could also detect, in addition to NSLocalizedString, SwiftGen's L10n enum generated from the strings file.
Is there any possibility to add Homebrew support for this for installation?
Never done it before but seem to be instructions here https://docs.brew.sh/Adding-Software-to-Homebrew
Might also need some version tags.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.