# CutBox.app

## Coverage Report

#### Created: 2024-03-12 03:40

    .../Source/Extensions/String+L10n.swift

    Line

    Count

    Source

    1

    //

    2

    //  String+L10n.swift

    3

    //  CutBox

    4

    //

    5

    //  Created by Jason Milkins on 15/4/18.

    6

    //  Copyright © 2018-2023 ocodo. All rights reserved.

    7

    //

    8

    9

    import Foundation

    10

    11

    extension String {

    12

    13

    3.35k

        var l7n: String {

    14

    3.35k

            return self.l10n()

    15

    3.35k

        }

    16

    17

        func l10n(tableName: String? = nil,

    18

                  bundle: Bundle = Bundle.main,

    19

                  value: String = "",

    20

    3.35k

                  comment: String = "") -> String {

    21

    3.35k

            return NSLocalizedString(self,

    22

    3.35k

                                     tableName: tableName,

    23

    3.35k

                                     bundle: bundle,

    24

    3.35k

                                     value: value,

    25

    3.35k

                                     comment: comment)

    26

    3.35k

        }

    27

    }