Skip to content

Commit

Permalink
README: add two links for the chinese documents, based on #2043
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed Jan 27, 2023
1 parent 605b6e4 commit bb3d5f2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
4 changes: 1 addition & 3 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<!-- # History/Changelog <a href="HISTORY_ZH.md"> <img width="20px" src="https://iris-go.com/images/flag-china.svg?v=10" /></a><a href="HISTORY_ID.md"> <img width="20px" src="https://iris-go.com/images/flag-indonesia.svg?v=10" /></a><a href="HISTORY_GR.md"> <img width="20px" src="https://iris-go.com/images/flag-greece.svg?v=10" /></a> -->

# Changelog
# Changelog <a href="HISTORY_ES.md"><img width="20px" src="https://iris-go.com/images/flag-spain.png" /></a>

### Looking for free and real-time support?

Expand Down
4 changes: 2 additions & 2 deletions README_FA.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div dir="rtl">

## خبرها

> این شاخه تحت توسعه است. برای رفتن به شاخه نسخه بعدی [v12.2.0](HISTORY.md#Next) یا اگر به دنبال یک انتشار پایدار هستید, به جای آن به شاخه [v12.1.8 branch](https://github.com/kataras/iris/tree/v12.1.8) مراجعه کنید.
Expand All @@ -8,7 +8,7 @@
> با توجه به بالا بودن حجم کار، ممکن است در پاسخ به [سوالات](https://github.com/kataras/iris/issues) شما تاخیری وجود داشته باشد.
# چارچوب وب آیریس
# Iris Web Framework

[![build status](https://img.shields.io/github/actions/workflow/status/kataras/iris/ci.yml?branch=master&style=for-the-badge)](https://github.com/kataras/iris/actions/workflows/ci.yml) [![FOSSA Status](https://img.shields.io/badge/LICENSE%20SCAN-PASSING❤️-CD2956?style=for-the-badge&logo=fossa)](https://app.fossa.io/projects/git%2Bgithub.com%2Fkataras%2Firis?ref=badge_shield)<!--[![report card](https://img.shields.io/badge/report%20card-a%2B-ff3333.svg?style=for-the-badge)](https://goreportcard.com/report/github.com/kataras/iris)--><!--[![godocs](https://img.shields.io/badge/go-%20docs-488AC7.svg?style=for-the-badge)](https://pkg.go.dev/github.com/kataras/iris/v12@v12.2.0)--> [![view examples](https://img.shields.io/badge/learn%20by-examples-0C8EC5.svg?style=for-the-badge&logo=go)](https://github.com/kataras/iris/tree/master/_examples) [![chat](https://img.shields.io/gitter/room/iris_go/community.svg?color=7E18DD&logo=gitter&style=for-the-badge)](https://gitter.im/iris_go/community)<!--[![donate on PayPal](https://img.shields.io/badge/support-PayPal-blue.svg?style=for-the-badge)](https://iris-go.com/donate)--><!-- [![release](https://img.shields.io/badge/release%20-v12.0-0077b3.svg?style=for-the-badge)](https://github.com/kataras/iris/releases) -->

Expand Down
5 changes: 5 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Iris Web Framework <a href="README_GR.md"><img width="20px" src="https://iris-go.com/images/flag-greece.svg" /></a> <a href="README_FR.md"><img width="20px" src="https://iris-go.com/images/flag-france.svg" /> <a href="README_ES.md"><img width="20px" src="https://iris-go.com/images/flag-spain.png" /></a> <a href="README_FA.md"><img width="20px" src="https://iris-go.com/images/flag-iran.svg" /></a> <a href="README_RU.md"><img width="20px" src="https://iris-go.com/images/flag-russia.svg" /></a> <a href="README_KO.md"><img width="20px" src="https://iris-go.com/images/flag-south-korea.svg?v=12" /></a> <a href="README_PT_BR.md"><img width="20px" height="20px" src="https://iris-go.com/images/flag-brazil.svg" /></a>

<img width="16px" src="https://iris-go.com/images/flag-chinese-zht.png" /> [Traditional Chinese (zht / zh-Hant)](README_ZH_HANT.md)

<img width="16px" src="https://iris-go.com/images/flag-chinese-zhs.png" /> [Simplified Chinese (zhs / zh-Hans)](README_ZH_HANS.md)
2 changes: 1 addition & 1 deletion _examples/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Table of Contents
# Table of Contents <a href="./README_ZH_HANT.md"> <img width="20px" src="https://iris-go.com/images/flag-china.svg?v=10" /> </a>

* [Serverless](https://github.com/iris-contrib/gateway#netlify)
* [REST API for Apache Kafka](kafka-api)
Expand Down
2 changes: 1 addition & 1 deletion core/router/mime.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ func TypeByExtension(ext string) (typ string) {
}

// mime.TypeByExtension returns as text/plain; | charset=utf-8 the static .js (not always)
if ext == ".js" && (typ == context.ContentJavascriptHeaderValue || typ == context.ContentTextHeaderValue) {
if ext == ".js" || ext == ".mjs" && (typ == context.ContentJavascriptHeaderValue || typ == context.ContentTextHeaderValue) {
typ = context.ContentJavascriptHeaderValue
}

Expand Down

0 comments on commit bb3d5f2

Please sign in to comment.