func (rs *ResourceSet) writeLangDirs(w io.Writer, s *state) error {
	for _, tid := range s.orderedKeys {
		te := rs.Types[tid]
		for _, ident := range te.OrderedKeys {
			if err := te.Resources[ident].write(w, s); err != nil {
				return err
			}
		}
	}
	return nil
}
// writeLangDirs is where we write the localized resource directory (3rd level: type->resource->locale)
writeLangDirs is where we write the localized resource directory (3rd level: type->resource->locale)
// writeLangDirs is where we write the localized resource directory ( 3rd level : type - > resource - > locale )
func (rs *ResourceSet) writeLangDirs(w io.Writer, s *state) error {
	for _, tid := range s.orderedKeys {
		te := rs.Types[tid]
		for _, ident := range te.OrderedKeys {
			if err := te.Resources[ident].write(w, s); err != nil {
				return err
			}
		}
	}
	return nil
}
func ( rs * ResourceSet ) writeLangDirs ( w io . Writer , s * state ) error { for _ , tid := range s . orderedKeys { te := rs . Types [ tid ] for _ , ident := range te . OrderedKeys { if err := te . Resources [ ident ] . write ( w , s ) ; err != nil { return err } } } return nil }
writeLangDirs is where we write the localized resource directory (3rd level: type->resource->locale)
writeLangDirs is where we write the localized resource directory ( 3rd level : type - > resource - > locale )