show/hide this revision's text 2 added 16 characters in body

Only in principal ideal domains (PIDs). If by number ring you mean Dedekind domain, then all its localizations at prime ideals are discrete valuation rings (except the one at 0 which is a field), which are principal ideal domains. So then every ideal in a Dedekind Domain is locally principal. But of course there are Dedekind domains that are not PIDs!

show/hide this revision's text 1

Only in principal ideal domains (PIDs). If by number ring you mean Dedekind domain, then all its localizations at prime ideals are discrete valuation rings (except the one at 0 which is a field), which are principal ideal domains. So then every ideal is locally principal. But of course there are Dedekind domains that are not PIDs!