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

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 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 9 месяцев назад

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