Skip to content
Snippets Groups Projects
Unverified Commit 3982a6d1 authored by John Swanson's avatar John Swanson Committed by GitHub
Browse files

Add a banner to the top of `locales.clj` (#37877)

Just add a comment warning that the file is autogenerated and not to
edit it by hand.
parent 162349cf
Branches
Tags
No related merge requests found
......@@ -15,7 +15,11 @@
(u/step "Create resources/locales.clj"
(let [file (u/filename u/project-root-directory "resources" "locales.clj")]
(u/delete-file-if-exists! file)
(spit file (with-out-str (pprint/pprint (locales-dot-edn))))
(spit file
(with-out-str
(println ";; DO NOT EDIT THIS FILE!")
(println ";; It is autogenerated by `i18n.create-artifacts` as part of the release process.")
(pprint/pprint (locales-dot-edn))))
(u/assert-file-exists file))))
(defn- create-artifacts-for-locale! [locale]
......
;; DO NOT EDIT THIS FILE!
;; It is autogenerated by `i18n.create-artifacts` as part of the release process.
{:locales
#{"ar"
"ar-SA"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment