NSLocalizedString with variables formatter

Here is an issue of NSLocalizedString, this line: NSLocalizedString(“Page (currentPage ?? 1)/(totalPages ?? 1)”, comment: “”) The string ‘Page’ should be localized but currentPage and totalPages are number variables, they are unable to pre-translated into localized string table.So the correct way is: NSLocalizedString(“Page”, comment: “”) + ” (currentPage ?? 1)/(totalPages ?? 1)”orString.formatted( NSLocalizedString(“Page %d/%d”, comment: […]