Build iOS App from scratch - Part 5 - Localization in SwiftUI

Поділитися
Вставка
  • Опубліковано 4 гру 2024

КОМЕНТАРІ • 9

  • @iOSTechie
    @iOSTechie Рік тому +1

    This is exactly what I was looking for to build in my project. Thank you and looking forward for the part 2 of localization video 😃👍

  • @EmanNollase
    @EmanNollase Рік тому

    nice tutorial!! QQ: How can use this to display i18n error message? private var emailError = "error_email_required", when the error displayed it did not pickup the value? any insights?

    • @AppDeveloperPoint
      @AppDeveloperPoint  Рік тому

      Thanks for watching.When you declare the variable. It will treat as plain Stting. In this case you need to explicitly use localized keyword to ask compiler for localized value

    • @EmanNollase
      @EmanNollase Рік тому

      @@AppDeveloperPoint how i can initialize the variable with the value from the key? thanks

    • @AppDeveloperPoint
      @AppDeveloperPoint  Рік тому +1

      private var emailError = NSLocalizedString("error_email_required", comment: "")

    • @EmanNollase
      @EmanNollase Рік тому

      @@AppDeveloperPoint Thanks works like a charm!

    • @AppDeveloperPoint
      @AppDeveloperPoint  Рік тому

      Thanks. Do subscribe and share channel among your ios circle 😊

  • @bjp_for_2024
    @bjp_for_2024 8 місяців тому

    can we use string catelog and in app setting to change localisation?