             
         }
         return localizableStrings.keys.flatMap {
-            Let(
-                isStatic: true,
-                name: toConstantName($0),
-                type: "String",
-                value: "NSLocalizedString(\"\($0)\", comment: \"\")"
-            )
+            return "\(accessControl) static let \(toConstantName($0)) = \"(NSLocalizedString(\"\($0)\", comment: \"\")"
         }
     }
 }

        self.localizableStrings = localizableStrings
    }
    
    func generate() -> Extension {
        return Extension(
            type: "String",
            structs: [
                Struct(
                    name: "Localized",
                    lets: generateLocalizableConstants()
                )
            ]
        )
    }
    
    fileprivate func generateLocalizableConstants() -> [Let] {
        func toConstantName(_ key: String) -> String {
            return key
                .replacingOccurrences(of: "[^a-z,^A-Z,^0-9]", with: "_", options: .regularExpression, range: nil)


import Foundation

struct LocalizedString: Declaration {
    let localizableStrings:[String: String]
    init(urls: [URL]) {
        let files = urls.filter { $0.lastPathComponent == "Localizable.strings" }
