Skip to content

Commit

Permalink
rename *.orig.json to *.json.orig
Browse files Browse the repository at this point in the history
  • Loading branch information
icrc-fdeniger committed May 31, 2024
1 parent c28360f commit 14d562e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ RUN /usr/share/nginx/html/assets/i18n/combine.sh

FROM init-layer
COPY --from=i18n-layer /usr/share/nginx/html/assets/i18n/*.json /usr/share/nginx/html/assets/i18n/
COPY --from=i18n-layer /usr/share/nginx/html/assets/i18n/*.orig /usr/share/nginx/html/assets/i18n/
COPY --from=i18n-layer /usr/share/nginx/html/assets/i18n/*.orig /tmp/orig/
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ RUN /usr/src/app/config/locales/combine.sh
FROM init-layer
#
COPY --from=i18n-layer /usr/src/app/config/locales/*.json /usr/src/app/config/locales/
COPY --from=i18n-layer /usr/src/app/config/locales/*.orig /usr/src/app/config/locales/
COPY --from=i18n-layer /usr/src/app/config/locales/*.orig /tmp/orig/
2 changes: 1 addition & 1 deletion doctor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ RUN /usr/share/nginx/html/assets/i18n/combine.sh
FROM init-layer

COPY --from=i18n-layer /usr/share/nginx/html/assets/i18n/*.json /usr/share/nginx/html/assets/i18n/
COPY --from=i18n-layer /usr/share/nginx/html/assets/i18n/*.orig /usr/share/nginx/html/assets/i18n/
COPY --from=i18n-layer /usr/share/nginx/html/assets/i18n/*.orig /tmp/orig/
2 changes: 1 addition & 1 deletion patient/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ RUN /usr/share/nginx/html/assets/i18n/combine.sh

FROM init-layer
COPY --from=i18n-layer /usr/share/nginx/html/assets/i18n/*.json /usr/share/nginx/html/assets/i18n/
COPY --from=i18n-layer /usr/share/nginx/html/assets/i18n/*.orig /usr/share/nginx/html/assets/i18n/
COPY --from=i18n-layer /usr/share/nginx/html/assets/i18n/*.orig /tmp/orig/
3 changes: 2 additions & 1 deletion update-i18n-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ move_files() {
local i18n_folder="./${service}/assets/i18n-override"
rm -rf "${tmp_folder}"
docker compose cp "${service}":"${docker_path}" "${tmp_folder}"
docker compose cp "${service}":/tmp/orig "${tmp_folder}"
cp "${tmp_folder}"/*.json "${i18n_folder}"
cp "${tmp_folder}"/*.orig "${i18n_folder}"
cp "${tmp_folder}"/orig/*.orig "${i18n_folder}"
rm -rf "${tmp_folder}"

}
Expand Down

0 comments on commit 14d562e

Please sign in to comment.