create publish method for locale cache